diff options
author | Arnd Bergmann <arnd@arndb.de> | 2009-06-27 09:05:30 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2009-06-27 09:09:52 -0400 |
commit | a1f8213b9518d0e9124a48a34bdd58b4bc2650e5 (patch) | |
tree | 07de0c44f8e30fb6da6458b6026c3114740ea9bc /arch/score/include | |
parent | 9fb24cc50045ec8d13d0a6c3d4d454750b466d61 (diff) |
score: add address space annotations
Annotate the address space for pointers that are used
correctly with __user and __iomem, so that sparse
can better warn about incorrect casts.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/score/include')
-rw-r--r-- | arch/score/include/asm/uaccess.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/score/include/asm/uaccess.h b/arch/score/include/asm/uaccess.h index 43ce28a1d0fc..6f09e2b7ddb9 100644 --- a/arch/score/include/asm/uaccess.h +++ b/arch/score/include/asm/uaccess.h | |||
@@ -13,9 +13,9 @@ extern int fixup_exception(struct pt_regs *regs); | |||
13 | #ifndef __ASSEMBLY__ | 13 | #ifndef __ASSEMBLY__ |
14 | 14 | ||
15 | #define __range_ok(addr, size) \ | 15 | #define __range_ok(addr, size) \ |
16 | ((((unsigned long)(addr) >= 0x80000000) \ | 16 | ((((unsigned long __force)(addr) >= 0x80000000) \ |
17 | || ((unsigned long)(size) > 0x80000000) \ | 17 | || ((unsigned long)(size) > 0x80000000) \ |
18 | || (((unsigned long)(addr) + (unsigned long)(size)) > 0x80000000))) | 18 | || (((unsigned long __force)(addr) + (unsigned long)(size)) > 0x80000000))) |
19 | 19 | ||
20 | #define __access_ok(addr, size) \ | 20 | #define __access_ok(addr, size) \ |
21 | (__range_ok((addr), (size)) == 0) | 21 | (__range_ok((addr), (size)) == 0) |