diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-18 13:02:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-18 13:02:24 -0500 |
commit | eaa0eda56223815cd9dc1225f715ff673ae77198 (patch) | |
tree | 12ed5208dda2ecbf2a652d6c54f83c58f362707d /arch/sh/include | |
parent | cad3ab5883b35b044200820bf2e1fbabe742740a (diff) | |
parent | 643165c8bbc8617d8222cb50c89e34fe64d226cf (diff) |
Merge tag 'asm-generic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
Pull asm-generic uaccess.h cleanup from Arnd Bergmann:
"Like in 3.19, I once more have a multi-stage cleanup for one
asm-generic header file, this time the work was done by Michael
Tsirkin and cleans up the uaccess.h file in asm-generic, as well as
all architectures for which the respective maintainers did not pick up
his patches directly"
* tag 'asm-generic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic: (37 commits)
sparc32: nocheck uaccess coding style tweaks
sparc64: nocheck uaccess coding style tweaks
xtensa: macro whitespace fixes
sh: macro whitespace fixes
parisc: macro whitespace fixes
m68k: macro whitespace fixes
m32r: macro whitespace fixes
frv: macro whitespace fixes
cris: macro whitespace fixes
avr32: macro whitespace fixes
arm64: macro whitespace fixes
arm: macro whitespace fixes
alpha: macro whitespace fixes
blackfin: macro whitespace fixes
sparc64: uaccess_64 macro whitespace fixes
sparc32: uaccess_32 macro whitespace fixes
avr32: whitespace fix
sh: fix put_user sparse errors
metag: fix put_user sparse errors
ia64: fix put_user sparse errors
...
Diffstat (limited to 'arch/sh/include')
-rw-r--r-- | arch/sh/include/asm/segment.h | 2 | ||||
-rw-r--r-- | arch/sh/include/asm/uaccess.h | 4 | ||||
-rw-r--r-- | arch/sh/include/asm/uaccess_64.h | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/arch/sh/include/asm/segment.h b/arch/sh/include/asm/segment.h index 5e2725f4ac49..ff795d3a6909 100644 --- a/arch/sh/include/asm/segment.h +++ b/arch/sh/include/asm/segment.h | |||
@@ -23,7 +23,7 @@ typedef struct { | |||
23 | #define USER_DS KERNEL_DS | 23 | #define USER_DS KERNEL_DS |
24 | #endif | 24 | #endif |
25 | 25 | ||
26 | #define segment_eq(a,b) ((a).seg == (b).seg) | 26 | #define segment_eq(a, b) ((a).seg == (b).seg) |
27 | 27 | ||
28 | #define get_ds() (KERNEL_DS) | 28 | #define get_ds() (KERNEL_DS) |
29 | 29 | ||
diff --git a/arch/sh/include/asm/uaccess.h b/arch/sh/include/asm/uaccess.h index 9486376605f4..a49635c51266 100644 --- a/arch/sh/include/asm/uaccess.h +++ b/arch/sh/include/asm/uaccess.h | |||
@@ -60,7 +60,7 @@ struct __large_struct { unsigned long buf[100]; }; | |||
60 | const __typeof__(*(ptr)) __user *__gu_addr = (ptr); \ | 60 | const __typeof__(*(ptr)) __user *__gu_addr = (ptr); \ |
61 | __chk_user_ptr(ptr); \ | 61 | __chk_user_ptr(ptr); \ |
62 | __get_user_size(__gu_val, __gu_addr, (size), __gu_err); \ | 62 | __get_user_size(__gu_val, __gu_addr, (size), __gu_err); \ |
63 | (x) = (__typeof__(*(ptr)))__gu_val; \ | 63 | (x) = (__force __typeof__(*(ptr)))__gu_val; \ |
64 | __gu_err; \ | 64 | __gu_err; \ |
65 | }) | 65 | }) |
66 | 66 | ||
@@ -71,7 +71,7 @@ struct __large_struct { unsigned long buf[100]; }; | |||
71 | const __typeof__(*(ptr)) *__gu_addr = (ptr); \ | 71 | const __typeof__(*(ptr)) *__gu_addr = (ptr); \ |
72 | if (likely(access_ok(VERIFY_READ, __gu_addr, (size)))) \ | 72 | if (likely(access_ok(VERIFY_READ, __gu_addr, (size)))) \ |
73 | __get_user_size(__gu_val, __gu_addr, (size), __gu_err); \ | 73 | __get_user_size(__gu_val, __gu_addr, (size), __gu_err); \ |
74 | (x) = (__typeof__(*(ptr)))__gu_val; \ | 74 | (x) = (__force __typeof__(*(ptr)))__gu_val; \ |
75 | __gu_err; \ | 75 | __gu_err; \ |
76 | }) | 76 | }) |
77 | 77 | ||
diff --git a/arch/sh/include/asm/uaccess_64.h b/arch/sh/include/asm/uaccess_64.h index 2e07e0f40c6a..c01376c76b86 100644 --- a/arch/sh/include/asm/uaccess_64.h +++ b/arch/sh/include/asm/uaccess_64.h | |||
@@ -59,19 +59,19 @@ do { \ | |||
59 | switch (size) { \ | 59 | switch (size) { \ |
60 | case 1: \ | 60 | case 1: \ |
61 | retval = __put_user_asm_b((void *)&x, \ | 61 | retval = __put_user_asm_b((void *)&x, \ |
62 | (long)ptr); \ | 62 | (__force long)ptr); \ |
63 | break; \ | 63 | break; \ |
64 | case 2: \ | 64 | case 2: \ |
65 | retval = __put_user_asm_w((void *)&x, \ | 65 | retval = __put_user_asm_w((void *)&x, \ |
66 | (long)ptr); \ | 66 | (__force long)ptr); \ |
67 | break; \ | 67 | break; \ |
68 | case 4: \ | 68 | case 4: \ |
69 | retval = __put_user_asm_l((void *)&x, \ | 69 | retval = __put_user_asm_l((void *)&x, \ |
70 | (long)ptr); \ | 70 | (__force long)ptr); \ |
71 | break; \ | 71 | break; \ |
72 | case 8: \ | 72 | case 8: \ |
73 | retval = __put_user_asm_q((void *)&x, \ | 73 | retval = __put_user_asm_q((void *)&x, \ |
74 | (long)ptr); \ | 74 | (__force long)ptr); \ |
75 | break; \ | 75 | break; \ |
76 | default: \ | 76 | default: \ |
77 | __put_user_unknown(); \ | 77 | __put_user_unknown(); \ |