tree:
git://git.infradead.org/users/hch/misc.git sockptr
head: 5efaa769a4a54eadf2f4e2f21a1b4359cd7a5e9c
commit: f036bed47a4ca956458369ce6caf93b1762468c6 [33/46] netfilter: switch nf_setsockopt
to sockptr_t
config: arc-allyesconfig (attached as .config)
compiler: arc-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
git checkout f036bed47a4ca956458369ce6caf93b1762468c6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> net/netfilter/ipvs/ip_vs_ctl.c:2912:10: error: initialization of
'int (*)(struct sock *, int, sockptr_t, unsigned int)' {aka 'int (*)(struct
sock *, int, struct <anonymous>, unsigned int)'} from incompatible pointer
type 'int (*)(struct sock *, int, void *, unsigned int)'
[-Werror=incompatible-pointer-types]
2912 | .set = do_ip_vs_set_ctl,
| ^~~~~~~~~~~~~~~~
net/netfilter/ipvs/ip_vs_ctl.c:2912:10: note: (near initialization for
'ip_vs_sockopts.set')
cc1: some warnings being treated as errors
vim +2912 net/netfilter/ipvs/ip_vs_ctl.c
^1da177e4c3f41 net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 2906
^1da177e4c3f41 net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 2907
^1da177e4c3f41 net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 2908 static struct
nf_sockopt_ops ip_vs_sockopts = {
^1da177e4c3f41 net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 2909 .pf =
PF_INET,
^1da177e4c3f41 net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 2910 .set_optmin =
IP_VS_BASE_CTL,
^1da177e4c3f41 net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 2911 .set_optmax =
IP_VS_SO_SET_MAX+1,
^1da177e4c3f41 net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 @2912 .set =
do_ip_vs_set_ctl,
^1da177e4c3f41 net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 2913 .get_optmin =
IP_VS_BASE_CTL,
^1da177e4c3f41 net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 2914 .get_optmax =
IP_VS_SO_GET_MAX+1,
^1da177e4c3f41 net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 2915 .get =
do_ip_vs_get_ctl,
16fcec35e7d7c4 net/ipv4/ipvs/ip_vs_ctl.c Neil Horman 2007-09-11 2916 .owner =
THIS_MODULE,
^1da177e4c3f41 net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 2917 };
^1da177e4c3f41 net/ipv4/ipvs/ip_vs_ctl.c Linus Torvalds 2005-04-16 2918
:::::: The code at line 2912 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org