arch/powerpc/math-emu/lfs.c:23:32: sparse: sparse: incorrect type in argument 2 (different address spaces)
From: kernel test robot
Date: Tue Jul 07 2020 - 06:25:23 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: bfe91da29bfad9941d5d703d45e29f0812a20724
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 3 weeks ago
config: powerpc-randconfig-s031-20200707 (attached as .config)
compiler: powerpc-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.2-31-gabbfd661-dirty
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
# 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=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
sparse warnings: (new ones prefixed by >>)
>> arch/powerpc/math-emu/lfs.c:23:32: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void *ea @@
>> arch/powerpc/math-emu/lfs.c:23:32: sparse: expected void const [noderef] __user *from
arch/powerpc/math-emu/lfs.c:23:32: sparse: got void *ea
arch/powerpc/math-emu/lfs.c:12:1: sparse: sparse: symbol 'lfs' was not declared. Should it be static?
--
>> arch/powerpc/math-emu/stfiwx.c:13:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got void *ea @@
>> arch/powerpc/math-emu/stfiwx.c:13:26: sparse: expected void [noderef] __user *to
arch/powerpc/math-emu/stfiwx.c:13:26: sparse: got void *ea
--
>> arch/powerpc/math-emu/stfs.c:38:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got void *ea @@
>> arch/powerpc/math-emu/stfs.c:38:34: sparse: expected void [noderef] __user *to
arch/powerpc/math-emu/stfs.c:38:34: sparse: got void *ea
--
>> arch/powerpc/math-emu/lfd.c:12:33: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void *ea @@
>> arch/powerpc/math-emu/lfd.c:12:33: sparse: expected void const [noderef] __user *from
arch/powerpc/math-emu/lfd.c:12:33: sparse: got void *ea
arch/powerpc/math-emu/lfd.c:10:1: sparse: sparse: symbol 'lfd' was not declared. Should it be static?
--
>> arch/powerpc/math-emu/stfd.c:17:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got void *ea @@
>> arch/powerpc/math-emu/stfd.c:17:26: sparse: expected void [noderef] __user *to
arch/powerpc/math-emu/stfd.c:17:26: sparse: got void *ea
--
drivers/mtd/nand/raw/fsl_upm.c:233:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned char [usertype] upm_addr_offset @@ got restricted __be32 const [usertype] @@
drivers/mtd/nand/raw/fsl_upm.c:233:30: sparse: expected unsigned char [usertype] upm_addr_offset
drivers/mtd/nand/raw/fsl_upm.c:233:30: sparse: got restricted __be32 const [usertype]
drivers/mtd/nand/raw/fsl_upm.c:241:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned char [usertype] upm_cmd_offset @@ got restricted __be32 const [usertype] @@
drivers/mtd/nand/raw/fsl_upm.c:241:29: sparse: expected unsigned char [usertype] upm_cmd_offset
drivers/mtd/nand/raw/fsl_upm.c:241:29: sparse: got restricted __be32 const [usertype]
>> arch/powerpc/include/asm/fsl_lbc.h:266:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int volatile [noderef] [usertype] __iomem *addr @@ got restricted __be32 [noderef] [usertype] __iomem *mxmr @@
>> arch/powerpc/include/asm/fsl_lbc.h:266:9: sparse: expected unsigned int volatile [noderef] [usertype] __iomem *addr
>> arch/powerpc/include/asm/fsl_lbc.h:266:9: sparse: got restricted __be32 [noderef] [usertype] __iomem *mxmr
>> arch/powerpc/include/asm/fsl_lbc.h:266:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int const volatile [noderef] [usertype] __iomem *addr @@ got restricted __be32 [noderef] [usertype] __iomem *mxmr @@
>> arch/powerpc/include/asm/fsl_lbc.h:266:9: sparse: expected unsigned int const volatile [noderef] [usertype] __iomem *addr
>> arch/powerpc/include/asm/fsl_lbc.h:266:9: sparse: got restricted __be32 [noderef] [usertype] __iomem *mxmr
arch/powerpc/include/asm/fsl_lbc.h:268:27: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int const volatile [noderef] [usertype] __iomem *addr @@ got restricted __be32 [noderef] [usertype] __iomem *mxmr @@
arch/powerpc/include/asm/fsl_lbc.h:268:27: sparse: expected unsigned int const volatile [noderef] [usertype] __iomem *addr
arch/powerpc/include/asm/fsl_lbc.h:268:27: sparse: got restricted __be32 [noderef] [usertype] __iomem *mxmr
arch/powerpc/include/asm/fsl_lbc.h:255:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int volatile [noderef] [usertype] __iomem *addr @@ got restricted __be32 [noderef] [usertype] __iomem *mxmr @@
arch/powerpc/include/asm/fsl_lbc.h:255:9: sparse: expected unsigned int volatile [noderef] [usertype] __iomem *addr
arch/powerpc/include/asm/fsl_lbc.h:255:9: sparse: got restricted __be32 [noderef] [usertype] __iomem *mxmr
arch/powerpc/include/asm/fsl_lbc.h:255:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int const volatile [noderef] [usertype] __iomem *addr @@ got restricted __be32 [noderef] [usertype] __iomem *mxmr @@
arch/powerpc/include/asm/fsl_lbc.h:255:9: sparse: expected unsigned int const volatile [noderef] [usertype] __iomem *addr
arch/powerpc/include/asm/fsl_lbc.h:255:9: sparse: got restricted __be32 [noderef] [usertype] __iomem *mxmr
arch/powerpc/include/asm/fsl_lbc.h:255:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int volatile [noderef] [usertype] __iomem *addr @@ got restricted __be32 [noderef] [usertype] __iomem *mxmr @@
arch/powerpc/include/asm/fsl_lbc.h:255:9: sparse: expected unsigned int volatile [noderef] [usertype] __iomem *addr
arch/powerpc/include/asm/fsl_lbc.h:255:9: sparse: got restricted __be32 [noderef] [usertype] __iomem *mxmr
arch/powerpc/include/asm/fsl_lbc.h:255:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int const volatile [noderef] [usertype] __iomem *addr @@ got restricted __be32 [noderef] [usertype] __iomem *mxmr @@
arch/powerpc/include/asm/fsl_lbc.h:255:9: sparse: expected unsigned int const volatile [noderef] [usertype] __iomem *addr
arch/powerpc/include/asm/fsl_lbc.h:255:9: sparse: got restricted __be32 [noderef] [usertype] __iomem *mxmr
vim +23 arch/powerpc/math-emu/lfs.c
^1da177e4c3f41 arch/ppc/math-emu/lfs.c Linus Torvalds 2005-04-16 22
^1da177e4c3f41 arch/ppc/math-emu/lfs.c Linus Torvalds 2005-04-16 @23 if (copy_from_user(&f, ea, sizeof(float)))
^1da177e4c3f41 arch/ppc/math-emu/lfs.c Linus Torvalds 2005-04-16 24 return -EFAULT;
^1da177e4c3f41 arch/ppc/math-emu/lfs.c Linus Torvalds 2005-04-16 25
d2b194ed820880 arch/powerpc/math-emu/lfs.c Kumar Gala 2008-06-04 26 FP_UNPACK_S(A, f);
^1da177e4c3f41 arch/ppc/math-emu/lfs.c Linus Torvalds 2005-04-16 27
:::::: The code at line 23 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip