diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-05-29 21:02:17 +0200 |
---|---|---|
committer | Greg Ungerer <gerg@linux-m68k.org> | 2020-05-30 10:51:54 +1000 |
commit | ce3e83759c674ae7c04938d3577dbf0f3144c8f0 (patch) | |
tree | f4e00434f2d46cc2f4090a229102152c8288b754 /arch | |
parent | e00091071615378e66291c61ea02d02d15a2cc7e (diff) | |
download | linux-ce3e83759c674ae7c04938d3577dbf0f3144c8f0.tar.gz linux-ce3e83759c674ae7c04938d3577dbf0f3144c8f0.tar.bz2 linux-ce3e83759c674ae7c04938d3577dbf0f3144c8f0.zip |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/m68k/include/asm/uaccess_no.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/include/asm/uaccess_no.h b/arch/m68k/include/asm/uaccess_no.h index a24cfe4a0d32..9651766a62af 100644 --- a/arch/m68k/include/asm/uaccess_no.h +++ b/arch/m68k/include/asm/uaccess_no.h @@ -60,7 +60,7 @@ extern int __put_user_bad(void); * aliasing issues. */ -#define __ptr(x) ((unsigned long *)(x)) +#define __ptr(x) ((unsigned long __user *)(x)) #define __put_user_asm(err,x,ptr,bwl) \ __asm__ ("move" #bwl " %0,%1" \ |