All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:sockptr 33/46] net/netfilter/ipvs/ip_vs_ctl.c:2912:10: error: initialization of 'int sock int, sockptr_t, unsigned int)' {aka 'int sock int, struct <anonymous>, unsigned int)'} from incompatible pointer type 'int sock int, ...
@ 2020-07-16 12:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-16 12:07 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3031 bytes --]

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@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@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 64685 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-16 12:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-16 12:07 [hch-misc:sockptr 33/46] net/netfilter/ipvs/ip_vs_ctl.c:2912:10: error: initialization of 'int sock int, sockptr_t, unsigned int)' {aka 'int sock int, struct <anonymous>, unsigned int)'} from incompatible pointer type 'int sock int, kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.