All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [kbuild] [linux-next:master 3956/12102] net/core/neighbour.c:3460:5: sparse: int extern [addressable] [signed] [toplevel] neigh_proc_dointvec( ... )
Date: Tue, 26 May 2020 08:19:05 +0800	[thread overview]
Message-ID: <20200526001905.GA13288@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   c11d28ab4a691736e30b49813fb801847bd44e83
commit: 32927393dc1ccd60fb2bdc05b9e8e88753761469 [3956/12102] sysctl: pass kernel pointers to ->proc_handler
config: c6x-randconfig-s001-20200524 (attached as .config)
compiler: c6x-elf-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-240-gf0fe1cd9-dirty
        git checkout 32927393dc1ccd60fb2bdc05b9e8e88753761469
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=c6x CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

   net/core/neighbour.c:3460:5: sparse: sparse: symbol 'neigh_proc_dointvec' redeclared with different type (incompatible argument 3 (different address spaces)):
>> net/core/neighbour.c:3460:5: sparse:    int extern [addressable] [signed] [toplevel] neigh_proc_dointvec( ... )
   include/net/neighbour.h:394:5: sparse: note: previously declared as:
>> include/net/neighbour.h:394:5: sparse:    int extern [addressable] [signed] [toplevel] neigh_proc_dointvec( ... )
   net/core/neighbour.c:3470:5: sparse: sparse: symbol 'neigh_proc_dointvec_jiffies' redeclared with different type (incompatible argument 3 (different address spaces)):
>> net/core/neighbour.c:3470:5: sparse:    int extern [addressable] [signed] [toplevel] neigh_proc_dointvec_jiffies( ... )
   include/net/neighbour.h:396:5: sparse: note: previously declared as:
>> include/net/neighbour.h:396:5: sparse:    int extern [addressable] [signed] [toplevel] neigh_proc_dointvec_jiffies( ... )
   net/core/neighbour.c:3490:5: sparse: sparse: symbol 'neigh_proc_dointvec_ms_jiffies' redeclared with different type (incompatible argument 3 (different address spaces)):
>> net/core/neighbour.c:3490:5: sparse:    int extern [addressable] [signed] [toplevel] neigh_proc_dointvec_ms_jiffies( ... )
   include/net/neighbour.h:399:5: sparse: note: previously declared as:
>> include/net/neighbour.h:399:5: sparse:    int extern [addressable] [signed] [toplevel] neigh_proc_dointvec_ms_jiffies( ... )
   net/core/neighbour.c:348:12: sparse: sparse: context imbalance in '__neigh_ifdown' - wrong count at exit
   net/core/neighbour.c:803:9: sparse: sparse: context imbalance in 'pneigh_ifdown_and_unlock' - unexpected unlock
--
   net/ipv6/ndisc.c:1850:55: sparse: sparse: incorrect type in argument 3 (different address spaces) @@    expected void [noderef] <asn:1> *buffer @@    got n:1> *buffer @@
   net/ipv6/ndisc.c:1850:55: sparse:    expected void [noderef] <asn:1> *buffer
   net/ipv6/ndisc.c:1850:55: sparse:    got void *buffer
   net/ipv6/ndisc.c:1854:51: sparse: sparse: incorrect type in argument 3 (different address spaces) @@    expected void [noderef] <asn:1> *buffer @@    got n:1> *buffer @@
   net/ipv6/ndisc.c:1854:51: sparse:    expected void [noderef] <asn:1> *buffer
   net/ipv6/ndisc.c:1854:51: sparse:    got void *buffer
   net/ipv6/ndisc.c:1859:54: sparse: sparse: incorrect type in argument 3 (different address spaces) @@    expected void [noderef] <asn:1> *buffer @@    got n:1> *buffer @@
   net/ipv6/ndisc.c:1859:54: sparse:    expected void [noderef] <asn:1> *buffer
   net/ipv6/ndisc.c:1859:54: sparse:    got void *buffer
   net/ipv6/ndisc.c:1838:5: sparse: sparse: symbol 'ndisc_ifinfo_sysctl_change' redeclared with different type (incompatible argument 3 (different address spaces)):
>> net/ipv6/ndisc.c:1838:5: sparse:    int extern [addressable] [signed] [toplevel] ndisc_ifinfo_sysctl_change( ... )
   include/net/ndisc.h:496:5: sparse: note: previously declared as:
>> include/net/ndisc.h:496:5: sparse:    int extern [addressable] [signed] [toplevel] ndisc_ifinfo_sysctl_change( ... )
   include/net/addrconf.h:478:36: sparse: sparse: restricted __be32 degrades to integer

# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=32927393dc1ccd60fb2bdc05b9e8e88753761469
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout 32927393dc1ccd60fb2bdc05b9e8e88753761469
vim +3460 net/core/neighbour.c

1f9248e5606afc6 Jiri Pirko        2013-12-07  3459  
32927393dc1ccd6 Christoph Hellwig 2020-04-24 @3460  int neigh_proc_dointvec(struct ctl_table *ctl, int write, void *buffer,
32927393dc1ccd6 Christoph Hellwig 2020-04-24  3461  			size_t *lenp, loff_t *ppos)
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3462  {
1d4c8c29841b999 Jiri Pirko        2013-12-07  3463  	int ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
1d4c8c29841b999 Jiri Pirko        2013-12-07  3464  
1d4c8c29841b999 Jiri Pirko        2013-12-07  3465  	neigh_proc_update(ctl, write);
1d4c8c29841b999 Jiri Pirko        2013-12-07  3466  	return ret;
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3467  }
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3468  EXPORT_SYMBOL(neigh_proc_dointvec);
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3469  
32927393dc1ccd6 Christoph Hellwig 2020-04-24 @3470  int neigh_proc_dointvec_jiffies(struct ctl_table *ctl, int write, void *buffer,
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3471  				size_t *lenp, loff_t *ppos)
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3472  {
1d4c8c29841b999 Jiri Pirko        2013-12-07  3473  	int ret = proc_dointvec_jiffies(ctl, write, buffer, lenp, ppos);
1d4c8c29841b999 Jiri Pirko        2013-12-07  3474  
1d4c8c29841b999 Jiri Pirko        2013-12-07  3475  	neigh_proc_update(ctl, write);
1d4c8c29841b999 Jiri Pirko        2013-12-07  3476  	return ret;
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3477  }
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3478  EXPORT_SYMBOL(neigh_proc_dointvec_jiffies);
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3479  
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3480  static int neigh_proc_dointvec_userhz_jiffies(struct ctl_table *ctl, int write,
32927393dc1ccd6 Christoph Hellwig 2020-04-24  3481  					      void *buffer, size_t *lenp,
32927393dc1ccd6 Christoph Hellwig 2020-04-24  3482  					      loff_t *ppos)
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3483  {
1d4c8c29841b999 Jiri Pirko        2013-12-07  3484  	int ret = proc_dointvec_userhz_jiffies(ctl, write, buffer, lenp, ppos);
1d4c8c29841b999 Jiri Pirko        2013-12-07  3485  
1d4c8c29841b999 Jiri Pirko        2013-12-07  3486  	neigh_proc_update(ctl, write);
1d4c8c29841b999 Jiri Pirko        2013-12-07  3487  	return ret;
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3488  }
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3489  
cb5b09c17fe6005 Jiri Pirko        2013-12-07 @3490  int neigh_proc_dointvec_ms_jiffies(struct ctl_table *ctl, int write,
32927393dc1ccd6 Christoph Hellwig 2020-04-24  3491  				   void *buffer, size_t *lenp, loff_t *ppos)
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3492  {
1d4c8c29841b999 Jiri Pirko        2013-12-07  3493  	int ret = proc_dointvec_ms_jiffies(ctl, write, buffer, lenp, ppos);
1d4c8c29841b999 Jiri Pirko        2013-12-07  3494  
1d4c8c29841b999 Jiri Pirko        2013-12-07  3495  	neigh_proc_update(ctl, write);
1d4c8c29841b999 Jiri Pirko        2013-12-07  3496  	return ret;
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3497  }
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3498  EXPORT_SYMBOL(neigh_proc_dointvec_ms_jiffies);
cb5b09c17fe6005 Jiri Pirko        2013-12-07  3499  

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

_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org

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

                 reply	other threads:[~2020-05-26  0:19 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=20200526001905.GA13288@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.