From: kernel test robot <lkp@intel.com> To: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> Subject: drivers/fpga/dfl-fme-main.c:143:13: sparse: sparse: incorrect type in argument 1 (different address spaces) Date: Mon, 30 Nov 2020 05:07:03 +0800 [thread overview] Message-ID: <202011300501.GyQzK2SN-lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 4684 bytes --] tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: aae5ab854e38151e69f261dbf0e3b7e396403178 commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr() date: 3 months ago config: sh-randconfig-s032-20201130 (attached as .config) compiler: sh4-linux-gcc (GCC) 9.3.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.3-170-g3bc348f6-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e5fc436f06eef54ef512ea55a9db8eb9f2e76959 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout e5fc436f06eef54ef512ea55a9db8eb9f2e76959 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sh 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 >>)" drivers/fpga/dfl-fme-main.c:143:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@ drivers/fpga/dfl-fme-main.c:143:13: sparse: expected int const *__gu_addr drivers/fpga/dfl-fme-main.c:143:13: sparse: got int [noderef] __user * >> drivers/fpga/dfl-fme-main.c:143:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ >> drivers/fpga/dfl-fme-main.c:143:13: sparse: expected void const volatile [noderef] __user *ptr drivers/fpga/dfl-fme-main.c:143:13: sparse: got int const *__gu_addr drivers/fpga/dfl-fme-main.c:155:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@ drivers/fpga/dfl-fme-main.c:155:13: sparse: expected int const *__gu_addr drivers/fpga/dfl-fme-main.c:155:13: sparse: got int [noderef] __user * drivers/fpga/dfl-fme-main.c:155:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ drivers/fpga/dfl-fme-main.c:155:13: sparse: expected void const volatile [noderef] __user *ptr drivers/fpga/dfl-fme-main.c:155:13: sparse: got int const *__gu_addr -- net/rose/af_rose.c:438:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *optlen @@ net/rose/af_rose.c:438:13: sparse: expected int const *__gu_addr net/rose/af_rose.c:438:13: sparse: got int [noderef] __user *optlen >> net/rose/af_rose.c:438:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ >> net/rose/af_rose.c:438:13: sparse: expected void const volatile [noderef] __user *ptr net/rose/af_rose.c:438:13: sparse: got int const *__gu_addr vim +143 drivers/fpga/dfl-fme-main.c 0a27ff24d59662b Kang Luwei 2018-06-30 136 69bb18ddfc4331b Wu Hao 2019-08-04 137 static long fme_hdr_ioctl_release_port(struct dfl_feature_platform_data *pdata, 69bb18ddfc4331b Wu Hao 2019-08-04 138 unsigned long arg) 69bb18ddfc4331b Wu Hao 2019-08-04 139 { 69bb18ddfc4331b Wu Hao 2019-08-04 140 struct dfl_fpga_cdev *cdev = pdata->dfl_cdev; 69bb18ddfc4331b Wu Hao 2019-08-04 141 int port_id; 69bb18ddfc4331b Wu Hao 2019-08-04 142 69bb18ddfc4331b Wu Hao 2019-08-04 @143 if (get_user(port_id, (int __user *)arg)) 69bb18ddfc4331b Wu Hao 2019-08-04 144 return -EFAULT; 69bb18ddfc4331b Wu Hao 2019-08-04 145 69bb18ddfc4331b Wu Hao 2019-08-04 146 return dfl_fpga_cdev_release_port(cdev, port_id); 69bb18ddfc4331b Wu Hao 2019-08-04 147 } 69bb18ddfc4331b Wu Hao 2019-08-04 148 :::::: The code at line 143 was first introduced by commit :::::: 69bb18ddfc4331ba1dea9db811caf93e95726408 fpga: dfl: fme: add DFL_FPGA_FME_PORT_RELEASE/ASSIGN ioctl support. :::::: TO: Wu Hao <hao.wu@intel.com> :::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [-- Attachment #2: .config.gz --] [-- Type: application/gzip, Size: 29676 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com> To: kbuild-all@lists.01.org Subject: drivers/fpga/dfl-fme-main.c:143:13: sparse: sparse: incorrect type in argument 1 (different address spaces) Date: Mon, 30 Nov 2020 05:07:03 +0800 [thread overview] Message-ID: <202011300501.GyQzK2SN-lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 4754 bytes --] tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: aae5ab854e38151e69f261dbf0e3b7e396403178 commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr() date: 3 months ago config: sh-randconfig-s032-20201130 (attached as .config) compiler: sh4-linux-gcc (GCC) 9.3.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.3-170-g3bc348f6-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e5fc436f06eef54ef512ea55a9db8eb9f2e76959 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout e5fc436f06eef54ef512ea55a9db8eb9f2e76959 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sh 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 >>)" drivers/fpga/dfl-fme-main.c:143:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@ drivers/fpga/dfl-fme-main.c:143:13: sparse: expected int const *__gu_addr drivers/fpga/dfl-fme-main.c:143:13: sparse: got int [noderef] __user * >> drivers/fpga/dfl-fme-main.c:143:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ >> drivers/fpga/dfl-fme-main.c:143:13: sparse: expected void const volatile [noderef] __user *ptr drivers/fpga/dfl-fme-main.c:143:13: sparse: got int const *__gu_addr drivers/fpga/dfl-fme-main.c:155:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@ drivers/fpga/dfl-fme-main.c:155:13: sparse: expected int const *__gu_addr drivers/fpga/dfl-fme-main.c:155:13: sparse: got int [noderef] __user * drivers/fpga/dfl-fme-main.c:155:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ drivers/fpga/dfl-fme-main.c:155:13: sparse: expected void const volatile [noderef] __user *ptr drivers/fpga/dfl-fme-main.c:155:13: sparse: got int const *__gu_addr -- net/rose/af_rose.c:438:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *optlen @@ net/rose/af_rose.c:438:13: sparse: expected int const *__gu_addr net/rose/af_rose.c:438:13: sparse: got int [noderef] __user *optlen >> net/rose/af_rose.c:438:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@ >> net/rose/af_rose.c:438:13: sparse: expected void const volatile [noderef] __user *ptr net/rose/af_rose.c:438:13: sparse: got int const *__gu_addr vim +143 drivers/fpga/dfl-fme-main.c 0a27ff24d59662b Kang Luwei 2018-06-30 136 69bb18ddfc4331b Wu Hao 2019-08-04 137 static long fme_hdr_ioctl_release_port(struct dfl_feature_platform_data *pdata, 69bb18ddfc4331b Wu Hao 2019-08-04 138 unsigned long arg) 69bb18ddfc4331b Wu Hao 2019-08-04 139 { 69bb18ddfc4331b Wu Hao 2019-08-04 140 struct dfl_fpga_cdev *cdev = pdata->dfl_cdev; 69bb18ddfc4331b Wu Hao 2019-08-04 141 int port_id; 69bb18ddfc4331b Wu Hao 2019-08-04 142 69bb18ddfc4331b Wu Hao 2019-08-04 @143 if (get_user(port_id, (int __user *)arg)) 69bb18ddfc4331b Wu Hao 2019-08-04 144 return -EFAULT; 69bb18ddfc4331b Wu Hao 2019-08-04 145 69bb18ddfc4331b Wu Hao 2019-08-04 146 return dfl_fpga_cdev_release_port(cdev, port_id); 69bb18ddfc4331b Wu Hao 2019-08-04 147 } 69bb18ddfc4331b Wu Hao 2019-08-04 148 :::::: The code at line 143 was first introduced by commit :::::: 69bb18ddfc4331ba1dea9db811caf93e95726408 fpga: dfl: fme: add DFL_FPGA_FME_PORT_RELEASE/ASSIGN ioctl support. :::::: TO: Wu Hao <hao.wu@intel.com> :::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.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: 29676 bytes --]
next reply other threads:[~2020-11-29 21:08 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-11-29 21:07 kernel test robot [this message] 2020-11-29 21:07 ` drivers/fpga/dfl-fme-main.c:143:13: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot -- strict thread matches above, loose matches on Subject: below -- 2021-04-14 18:08 kernel test robot 2021-04-14 18:08 ` 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=202011300501.GyQzK2SN-lkp@intel.com \ --to=lkp@intel.com \ --cc=kbuild-all@lists.01.org \ --cc=linux-kernel@vger.kernel.org \ --cc=luc.vanoostenryck@gmail.com \ --cc=miguel.ojeda.sandonis@gmail.com \ /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: linkBe 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.