Hi Leandro, Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net/master] url: https://github.com/0day-ci/linux/commits/Leandro-Dorileo/net-sched-taprio-cbs-Fix-using-invalid-link-speed/20190315-092958 config: mips-allyesconfig (attached as .config) compiler: mips-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree GCC_VERSION=7.2.0 make.cross ARCH=mips All warnings (new ones prefixed by >>): In file included from include/linux/printk.h:7:0, from include/linux/kernel.h:14, from include/asm-generic/bug.h:18, from arch/mips/include/asm/bug.h:42, from include/linux/bug.h:5, from include/linux/mmdebug.h:5, from include/linux/gfp.h:5, from include/linux/slab.h:15, from net/sched/sch_taprio.c:10: net/sched/sch_taprio.c: In function 'taprio_set_picos_per_byte': >> include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of >> type 'long unsigned int', but argument 3 has type 'long long int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:310:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ net/sched/sch_taprio.c:600:2: note: in expansion of macro 'pr_info' pr_info("taprio: set %s's picos_per_byte to: %lu, linkspeed: %d\n", ^~~~~~~ net/sched/sch_taprio.c:600:49: note: format string is defined here pr_info("taprio: set %s's picos_per_byte to: %lu, linkspeed: %d\n", ~~^ %llu -- In file included from include/linux/printk.h:7:0, from include/linux/kernel.h:14, from include/asm-generic/bug.h:18, from arch/mips/include/asm/bug.h:42, from include/linux/bug.h:5, from include/linux/mmdebug.h:5, from include/linux/gfp.h:5, from include/linux/slab.h:15, from net//sched/sch_taprio.c:10: net//sched/sch_taprio.c: In function 'taprio_set_picos_per_byte': >> include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of >> type 'long unsigned int', but argument 3 has type 'long long int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:310:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ net//sched/sch_taprio.c:600:2: note: in expansion of macro 'pr_info' pr_info("taprio: set %s's picos_per_byte to: %lu, linkspeed: %d\n", ^~~~~~~ net//sched/sch_taprio.c:600:49: note: format string is defined here pr_info("taprio: set %s's picos_per_byte to: %lu, linkspeed: %d\n", ~~^ %llu vim +5 include/linux/kern_levels.h 314ba352 Joe Perches 2012-07-30 4 04d2c8c8 Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII Start Of Header */ 04d2c8c8 Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001' 04d2c8c8 Joe Perches 2012-07-30 7 :::::: The code at line 5 was first introduced by commit :::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_<LEVEL> to a 2 byte pattern :::::: TO: Joe Perches <j...@perches.com> :::::: CC: Linus Torvalds <torva...@linux-foundation.org> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip