[PATCH 36/36] m68k: cast in strnlen switched to unsigned long

From: Al Viro
Date: Wed Dec 21 2005 - 23:52:08 EST


From: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Date: 1135012341 -0500

Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>

---

include/asm-m68k/uaccess.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

1dcba025aa483559af90e88e91ab4fd62304bb5c
diff --git a/include/asm-m68k/uaccess.h b/include/asm-m68k/uaccess.h
index a653bf8..2ffd87b 100644
--- a/include/asm-m68k/uaccess.h
+++ b/include/asm-m68k/uaccess.h
@@ -805,7 +805,7 @@ static inline long strnlen_user(const ch
{
long res;

- res = -(long)src;
+ res = -(unsigned long)src;
__asm__ __volatile__
("1:\n"
" tstl %2\n"
--
0.99.9.GIT

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/