All of lore.kernel.org
 help / color / mirror / Atom feed
* [mic:next 1/4] kernel/sysctl.c:897:51: sparse: sparse: incorrect type in argument 3 (different address spaces)
@ 2022-01-30  2:52 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-30  2:52 UTC (permalink / raw)
  To: Mickaël Salaün; +Cc: kbuild-all, linux-kernel

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git next
head:   e8a1a72b5883a6aa1480e0a46f1df1960e18fa3a
commit: c96303ec34ab5dffd825142d2c1b30484b6ca879 [1/4] printk: Move back proc_dointvec_minmax_sysadmin() to sysctl.c
config: sparc-randconfig-s032-20220130 (https://download.01.org/0day-ci/archive/20220130/202201301017.4PgkIeBv-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 11.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git/commit/?id=c96303ec34ab5dffd825142d2c1b30484b6ca879
        git remote add mic git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git
        git fetch --no-tags mic next
        git checkout c96303ec34ab5dffd825142d2c1b30484b6ca879
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc SHELL=/bin/bash

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


sparse warnings: (new ones prefixed by >>)
>> kernel/sysctl.c:897:51: sparse: sparse: incorrect type in argument 3 (different address spaces) @@     expected void * @@     got void [noderef] __user *buffer @@
   kernel/sysctl.c:897:51: sparse:     expected void *
   kernel/sysctl.c:897:51: sparse:     got void [noderef] __user *buffer
   kernel/sysctl.c:891:5: sparse: sparse: symbol 'proc_dointvec_minmax_sysadmin' redeclared with different type (incompatible argument 3 (different address spaces)):
>> kernel/sysctl.c:891:5: sparse:    int extern [addressable] [signed] [toplevel] proc_dointvec_minmax_sysadmin( ... )
   kernel/sysctl.c: note: in included file (through include/linux/umh.h, include/linux/kmod.h, include/linux/module.h):
   include/linux/sysctl.h:72:5: sparse: note: previously declared as:
>> include/linux/sysctl.h:72:5: sparse:    int extern [addressable] [signed] [toplevel] proc_dointvec_minmax_sysadmin( ... )

vim +897 kernel/sysctl.c

   890	
 > 891	int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write,
   892					void __user *buffer, size_t *lenp, loff_t *ppos)
   893	{
   894		if (write && !capable(CAP_SYS_ADMIN))
   895			return -EPERM;
   896	
 > 897		return proc_dointvec_minmax(table, write, buffer, lenp, ppos);
   898	}
   899	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [mic:next 1/4] kernel/sysctl.c:897:51: sparse: sparse: incorrect type in argument 3 (different address spaces)
@ 2022-01-30  2:52 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-30  2:52 UTC (permalink / raw)
  To: kbuild-all

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

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git next
head:   e8a1a72b5883a6aa1480e0a46f1df1960e18fa3a
commit: c96303ec34ab5dffd825142d2c1b30484b6ca879 [1/4] printk: Move back proc_dointvec_minmax_sysadmin() to sysctl.c
config: sparc-randconfig-s032-20220130 (https://download.01.org/0day-ci/archive/20220130/202201301017.4PgkIeBv-lkp(a)intel.com/config)
compiler: sparc-linux-gcc (GCC) 11.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git/commit/?id=c96303ec34ab5dffd825142d2c1b30484b6ca879
        git remote add mic git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git
        git fetch --no-tags mic next
        git checkout c96303ec34ab5dffd825142d2c1b30484b6ca879
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc SHELL=/bin/bash

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


sparse warnings: (new ones prefixed by >>)
>> kernel/sysctl.c:897:51: sparse: sparse: incorrect type in argument 3 (different address spaces) @@     expected void * @@     got void [noderef] __user *buffer @@
   kernel/sysctl.c:897:51: sparse:     expected void *
   kernel/sysctl.c:897:51: sparse:     got void [noderef] __user *buffer
   kernel/sysctl.c:891:5: sparse: sparse: symbol 'proc_dointvec_minmax_sysadmin' redeclared with different type (incompatible argument 3 (different address spaces)):
>> kernel/sysctl.c:891:5: sparse:    int extern [addressable] [signed] [toplevel] proc_dointvec_minmax_sysadmin( ... )
   kernel/sysctl.c: note: in included file (through include/linux/umh.h, include/linux/kmod.h, include/linux/module.h):
   include/linux/sysctl.h:72:5: sparse: note: previously declared as:
>> include/linux/sysctl.h:72:5: sparse:    int extern [addressable] [signed] [toplevel] proc_dointvec_minmax_sysadmin( ... )

vim +897 kernel/sysctl.c

   890	
 > 891	int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write,
   892					void __user *buffer, size_t *lenp, loff_t *ppos)
   893	{
   894		if (write && !capable(CAP_SYS_ADMIN))
   895			return -EPERM;
   896	
 > 897		return proc_dointvec_minmax(table, write, buffer, lenp, ppos);
   898	}
   899	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-30  2:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-30  2:52 [mic:next 1/4] kernel/sysctl.c:897:51: sparse: sparse: incorrect type in argument 3 (different address spaces) kernel test robot
2022-01-30  2:52 ` 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.