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] *