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

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)