From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [mic:next 1/4] kernel/sysctl.c:897:51: sparse: sparse: incorrect type in argument 3 (different address spaces)
Date: Sun, 30 Jan 2022 10:52:13 +0800 [thread overview]
Message-ID: <202201301017.4PgkIeBv-lkp@intel.com> (raw)
[-- 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
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: "Mickaël Salaün" <mic@linux.microsoft.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mic:next 1/4] kernel/sysctl.c:897:51: sparse: sparse: incorrect type in argument 3 (different address spaces)
Date: Sun, 30 Jan 2022 10:52:13 +0800 [thread overview]
Message-ID: <202201301017.4PgkIeBv-lkp@intel.com> (raw)
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
next reply other threads:[~2022-01-30 2:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-30 2:52 kernel test robot [this message]
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
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=202201301017.4PgkIeBv-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.