fix sparse buglet

From: David Mosberger <>
Date: 2005-01-15 13:26:52

I was getting a lot of spurious warnings with "make C=1", due to a
missing "__user" attribute.  I'm not sure whether this got lost or
whether earlier versions of sparse failed to warn about it, but it's
clearly needed (and the i386 version of uaccess.h does the same).

Please apply.



Signed-off-by: David Mosberger-Tang <>

===== include/asm-ia64/uaccess.h 1.21 vs edited =====
--- 1.21/include/asm-ia64/uaccess.h	2004-10-05 11:27:40 -07:00
+++ edited/include/asm-ia64/uaccess.h	2005-01-14 17:47:23 -08:00
@@ -132,7 +132,7 @@
   struct __large_struct { unsigned long buf[100]; };
-# define __m(x) (*(struct __large_struct *)(x))
+# define __m(x) (*(struct __large_struct __user *)(x))
 /* We need to declare the __ex_table section before we can use it in .xdata.  */
 asm (".section \"__ex_table\", \"a\"\n\t.previous");
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Fri Jan 14 21:27:02 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:34 EST