projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af640d1
)
parisc: Define access_ok() as macro
author
Helge Deller
<deller@gmx.de>
Sun, 29 Jan 2017 17:19:33 +0000
(18:19 +0100)
committer
Helge Deller
<deller@gmx.de>
Sat, 25 Feb 2017 21:22:54 +0000
(22:22 +0100)
Define access_ok() as macro instead of static function. This fixes build
warnings in code where the second parameter is given as unsigned long.
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/uaccess.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/parisc/include/asm/uaccess.h
b/arch/parisc/include/asm/uaccess.h
index 9a2aee1b90fcca4c90ba11b70c58da4e3f3e6129..fb4382c28259b3ff2f873014fce7e42f1373dac8 100644
(file)
--- a/
arch/parisc/include/asm/uaccess.h
+++ b/
arch/parisc/include/asm/uaccess.h
@@
-32,11
+32,7
@@
* that put_user is the same as __put_user, etc.
*/
-static inline long access_ok(int type, const void __user * addr,
- unsigned long size)
-{
- return 1;
-}
+#define access_ok(type, uaddr, size) (1)
#define put_user __put_user
#define get_user __get_user