patch-2.4.21 linux-2.4.21/include/asm-sparc/uaccess.h
Next file: linux-2.4.21/include/asm-sparc/unistd.h
Previous file: linux-2.4.21/include/asm-sparc/system.h
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
2003-06-13 07:51:38.000000000 -0700
-  Orig file: 
linux-2.4.20/include/asm-sparc/uaccess.h
-  Orig date: 
2001-10-30 15:08:11.000000000 -0800
diff -urN linux-2.4.20/include/asm-sparc/uaccess.h linux-2.4.21/include/asm-sparc/uaccess.h
@@ -103,7 +103,7 @@
  * doing multiple accesses to the same area (the user has to do the
  * checks by hand with "access_ok()")
  */
-#define __put_user(x,ptr) __put_user_nocheck((x),(ptr),sizeof(*(ptr)))
+#define __put_user(x,ptr) __put_user_nocheck((__typeof__(*(ptr)))(x),(ptr),sizeof(*(ptr)))
 #define __get_user(x,ptr) __get_user_nocheck((x),(ptr),sizeof(*(ptr)),__typeof__(*(ptr)))
 
 struct __large_struct { unsigned long buf[100]; };
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)