]> git.baikalelectronics.ru Git - kernel.git/commit
m68k,nommu: add missing __user in uaccess' __ptr() macro
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Fri, 29 May 2020 19:02:17 +0000 (21:02 +0200)
committerGreg Ungerer <gerg@linux-m68k.org>
Sat, 30 May 2020 00:51:54 +0000 (10:51 +1000)
commit4ab87a572f149ec4c0f7ec5472eca8a797710262
treef4e00434f2d46cc2f4090a229102152c8288b754
parentfaf5c214d15a2d5a5c5c9a4654a08fe97da8d463
m68k,nommu: add missing __user in uaccess' __ptr() macro

The assembly for __get_user() & __put_user() uses a macro, __ptr(),
to cast the pointer to 'unsigned long *' but the pointer is always
a __user one and so this cast creates a lot of warnings when using
Sparse.

So, change to the cast to 'unsigned long __user *'.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
arch/m68k/include/asm/uaccess_no.h