All of lore.kernel.org
 help / color / mirror / Atom feed
* [linuxppc:next-test 29/97] arch/powerpc/math-emu/math.c:237:13: sparse: sparse: incorrect type in initializer (different address spaces)
@ 2021-03-14 13:11 kernel test robot
  2021-03-15 12:02 ` Christophe Leroy
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-03-14 13:11 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3668 bytes --]

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/60e66d033c83b3677fd54b3bc3a9643b56b64f04
        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@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@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.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: 39416 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linuxppc:next-test 29/97] arch/powerpc/math-emu/math.c:237:13: sparse: sparse: incorrect type in initializer (different address spaces)
  2021-03-14 13:11 [linuxppc:next-test 29/97] arch/powerpc/math-emu/math.c:237:13: sparse: sparse: incorrect type in initializer (different address spaces) kernel test robot
@ 2021-03-15 12:02 ` Christophe Leroy
  0 siblings, 0 replies; 2+ messages in thread
From: Christophe Leroy @ 2021-03-15 12:02 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2270 bytes --]



Le 14/03/2021 à 14:11, kernel test robot a écrit :
> 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/60e66d033c83b3677fd54b3bc3a9643b56b64f04
>          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@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] *
> 

Fixed by 
https://patchwork.ozlabs.org/project/linuxppc-dev/patch/e4d1aae7604d89c98a52dfd8ce8443462e595670.1615809591.git.christophe.leroy(a)csgroup.eu/

Christophe

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-15 12:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-14 13:11 [linuxppc:next-test 29/97] arch/powerpc/math-emu/math.c:237:13: sparse: sparse: incorrect type in initializer (different address spaces) kernel test robot
2021-03-15 12:02 ` Christophe Leroy

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.