aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2006-01-12 01:06:34 -0800
committerLinus Torvalds <[email protected]>2006-01-12 09:09:04 -0800
commit35efbcabdc217f2b3a73bf3b895559e8f269e258 (patch)
tree85077309dff12435d4dfe9419399e6beab7ec424 /include
parenta5d361fc24b75ea51e219367ee32c64422a2134f (diff)
[PATCH] m68k: cast in strnlen switched to unsigned long
Signed-off-by: Al Viro <[email protected]> Cc: Roman Zippel <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/asm-m68k/uaccess.h2
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)
{
long res;
- res = -(long)src;
+ res = -(unsigned long)src;
__asm__ __volatile__
("1:\n"
" tstl %2\n"