diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 04:06:34 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 12:09:04 -0500 |
commit | 35efbcabdc217f2b3a73bf3b895559e8f269e258 (patch) | |
tree | 85077309dff12435d4dfe9419399e6beab7ec424 | |
parent | a5d361fc24b75ea51e219367ee32c64422a2134f (diff) |
[PATCH] m68k: cast in strnlen switched to unsigned long
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | include/asm-m68k/uaccess.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-m68k/uaccess.h b/include/asm-m68k/uaccess.h index a653bf80b848..2ffd87b0a769 100644 --- a/include/asm-m68k/uaccess.h +++ b/include/asm-m68k/uaccess.h | |||
@@ -805,7 +805,7 @@ static inline long strnlen_user(const char __user *src, long n) | |||
805 | { | 805 | { |
806 | long res; | 806 | long res; |
807 | 807 | ||
808 | res = -(long)src; | 808 | res = -(unsigned long)src; |
809 | __asm__ __volatile__ | 809 | __asm__ __volatile__ |
810 | ("1:\n" | 810 | ("1:\n" |
811 | " tstl %2\n" | 811 | " tstl %2\n" |