tree:
https://github.com/linuxppc/linux next-test
head: 3411d1b25358f6007f411b1fa629ac040b8f59ad
commit: 60e66d033c83b3677fd54b3bc3a9643b56b64f04 [29/97] powerpc/uaccess: Refactor
get/put_user() and __get/put_user()
config: powerpc64-randconfig-s032-20210314 (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.3-262-g5e674421-dirty
#
https://github.com/linuxppc/linux/commit/60e66d033c83b3677fd54b3bc3a9643b...
git remote add linuxppc
https://github.com/linuxppc/linux
git fetch --no-tags linuxppc next-test
git checkout 60e66d033c83b3677fd54b3bc3a9643b56b64f04
# 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=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
arch/powerpc/math-emu/math.c:228:21: sparse: sparse: Using plain integer as NULL
pointer
arch/powerpc/math-emu/math.c:228:31: sparse: sparse: Using plain integer as NULL
pointer
arch/powerpc/math-emu/math.c:228:41: sparse: sparse: Using plain integer as NULL
pointer
arch/powerpc/math-emu/math.c:228:51: sparse: sparse: Using plain integer as NULL
pointer
> arch/powerpc/math-emu/math.c:237:13: sparse: sparse: incorrect
type in initializer (different address spaces) @@ expected unsigned int [noderef]
__user *_gu_addr @@ got unsigned int [usertype] * @@
arch/powerpc/math-emu/math.c:237:13: sparse: expected unsigned int [noderef] __user
*_gu_addr
arch/powerpc/math-emu/math.c:237:13: sparse: got unsigned int [usertype] *
vim +237 arch/powerpc/math-emu/math.c
^1da177e4c3f41 arch/ppc/math-emu/math.c Linus Torvalds 2005-04-16 224
^1da177e4c3f41 arch/ppc/math-emu/math.c Linus Torvalds 2005-04-16 225 int
^1da177e4c3f41 arch/ppc/math-emu/math.c Linus Torvalds 2005-04-16 226 do_mathemu(struct
pt_regs *regs)
^1da177e4c3f41 arch/ppc/math-emu/math.c Linus Torvalds 2005-04-16 227 {
^1da177e4c3f41 arch/ppc/math-emu/math.c Linus Torvalds 2005-04-16 228 void *op0 = 0,
*op1 = 0, *op2 = 0, *op3 = 0;
^1da177e4c3f41 arch/ppc/math-emu/math.c Linus Torvalds 2005-04-16 229 unsigned long pc
= regs->nip;
^1da177e4c3f41 arch/ppc/math-emu/math.c Linus Torvalds 2005-04-16 230 signed short
sdisp;
^1da177e4c3f41 arch/ppc/math-emu/math.c Linus Torvalds 2005-04-16 231 u32 insn = 0;
^1da177e4c3f41 arch/ppc/math-emu/math.c Linus Torvalds 2005-04-16 232 int idx = 0;
^1da177e4c3f41 arch/ppc/math-emu/math.c Linus Torvalds 2005-04-16 233 int (*func)(void
*, void *, void *, void *);
^1da177e4c3f41 arch/ppc/math-emu/math.c Linus Torvalds 2005-04-16 234 int type = 0;
^1da177e4c3f41 arch/ppc/math-emu/math.c Linus Torvalds 2005-04-16 235 int eflag, trap;
^1da177e4c3f41 arch/ppc/math-emu/math.c Linus Torvalds 2005-04-16 236
^1da177e4c3f41 arch/ppc/math-emu/math.c Linus Torvalds 2005-04-16 @237 if
(get_user(insn, (u32 *)pc))
:::::: The code at line 237 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org