From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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, union <anonymous>, unsigned int)'} from incompatible pointer type 'int sock int, v...
Date: Thu, 16 Jul 2020 19:55:54 +0800 [thread overview]
Message-ID: <202007161943.JdAPPlwa%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2842 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: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout f036bed47a4ca956458369ce6caf93b1762468c6
# save the attached .config to linux build tree
make W=1 ARCH=i386
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, union <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: 74086 bytes --]
reply other threads:[~2020-07-16 11:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202007161943.JdAPPlwa%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.