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

From: Al Viro
Date: Tue Jan 03 2006 - 18:30:23 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(-)

db2c42670cf6d3dcab286b15d4947de579a34172
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/