tree:
https://github.com/jpirko/linux_mlxsw petrm_resilient
head: 80746cff1944e716e426afec11340d5f5164895c
commit: dae1ac8af0cc1e9f0b5967822be3aed69a3a7b14 [24/25] nexthop: Add support code for
resilient ECMP groups [xxx]
config: c6x-randconfig-r011-20201210 (attached as .config)
compiler: c6x-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/jpirko/linux_mlxsw/commit/dae1ac8af0cc1e9f0b5967822be3...
git remote add jpirko-mlxsw
https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw petrm_resilient
git checkout dae1ac8af0cc1e9f0b5967822be3aed69a3a7b14
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=c6x
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/c6x/include/asm/bug.h:12,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/current.h:5,
from ./arch/c6x/include/generated/asm/current.h:1,
from include/linux/mutex.h:14,
from include/linux/rtnetlink.h:6,
from net/ipv4/nexthop.c:9:
net/ipv4/nexthop.c: In function 'nh_res_table_upkeep':
> include/linux/kern_levels.h:5:18: warning: format '%d'
expects argument of type 'int', but argument 2 has type 'long unsigned
int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of
Header */
| ^~~~~~
include/linux/kern_levels.h:12:22: note: in expansion of macro 'KERN_SOH'
12 | #define KERN_WARNING KERN_SOH "4" /* warning conditions */
| ^~~~~~~~
net/ipv4/nexthop.c:1265:10: note: in expansion of macro 'KERN_WARNING'
1265 | printk(KERN_WARNING "next wakeup: %d\n", deadline - now);
| ^~~~~~~~~~~~
net/ipv4/nexthop.c:1265:38: note: format string is defined here
1265 | printk(KERN_WARNING "next wakeup: %d\n", deadline - now);
| ~^
| |
| int
| %ld
net/ipv4/nexthop.c: In function 'rtm_to_nh_config':
net/ipv4/nexthop.c:2371:41: warning: passing argument 3 of
'nh_check_attr_group' makes pointer from integer without a cast
[-Wint-conversion]
2371 | err = nh_check_attr_group(net, tb, cfg->nh_grp_type, extack);
| ~~~^~~~~~~~~~~~~
| |
| u16 {aka short unsigned int}
net/ipv4/nexthop.c:724:35: note: expected 'struct netlink_ext_ack *' but
argument is of type 'u16' {aka 'short unsigned int'}
724 | struct netlink_ext_ack *extack)
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
net/ipv4/nexthop.c:2371:9: error: too many arguments to function
'nh_check_attr_group'
2371 | err = nh_check_attr_group(net, tb, cfg->nh_grp_type, extack);
| ^~~~~~~~~~~~~~~~~~~
net/ipv4/nexthop.c:723:12: note: declared here
723 | static int nh_check_attr_group(struct net *net, struct nlattr *tb[],
| ^~~~~~~~~~~~~~~~~~~
vim +5 include/linux/kern_levels.h
314ba3520e513a Joe Perches 2012-07-30 4
04d2c8c83d0e3a Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII
Start Of Header */
04d2c8c83d0e3a Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001'
04d2c8c83d0e3a 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 <joe(a)perches.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org