summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/uaccess.h
diff options
context:
space:
mode:
authorLinus Torvalds2019-01-04 18:58:25 +0100
committerLinus Torvalds2019-01-04 18:58:25 +0100
commit4caf4ebfe4cf0ea262eb9e829bb254a6a6d58acc (patch)
tree0df80f621d819724a6874d39f148aa423c3e1ae3 /arch/powerpc/include/asm/uaccess.h
parentRemove 'type' argument from access_ok() function (diff)
downloadkernel-qcow2-linux-4caf4ebfe4cf0ea262eb9e829bb254a6a6d58acc.tar.gz
kernel-qcow2-linux-4caf4ebfe4cf0ea262eb9e829bb254a6a6d58acc.tar.xz
kernel-qcow2-linux-4caf4ebfe4cf0ea262eb9e829bb254a6a6d58acc.zip
Fix access_ok() fallout for sparc32 and powerpc
These two architectures actually had an intentional use of the 'type' argument to access_ok() just to avoid warnings. I had actually noticed the powerpc one, but forgot to then fix it up. And I missed the sparc32 case entirely. This is hopefully all of it. Reported-by: Mathieu Malaterre <malat@debian.org> Reported-by: Guenter Roeck <linux@roeck-us.net> Fixes: 96d4f267e40f ("Remove 'type' argument from access_ok() function") Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/powerpc/include/asm/uaccess.h')
-rw-r--r--arch/powerpc/include/asm/uaccess.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/uaccess.h b/arch/powerpc/include/asm/uaccess.h
index b31bf45eebd4..e3a731793ea2 100644
--- a/arch/powerpc/include/asm/uaccess.h
+++ b/arch/powerpc/include/asm/uaccess.h
@@ -63,7 +63,7 @@ static inline int __access_ok(unsigned long addr, unsigned long size,
#endif
#define access_ok(addr, size) \
- (__chk_user_ptr(addr), (void)(type), \
+ (__chk_user_ptr(addr), \
__access_ok((__force unsigned long)(addr), (size), get_fs()))
/*