Update of /cvsroot/ssic-linux/openssi/kernel/include/cluster/ssi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27458/include/cluster/ssi
Modified Files:
rcopy_uaccess.h
Log Message:
Fix build error when get_user() is called with a char[0] as the ptr
argument. One of the driver files does this.
Index: rcopy_uaccess.h
===================================================================
RCS file:
/cvsroot/ssic-linux/openssi/kernel/include/cluster/ssi/rcopy_uaccess.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- rcopy_uaccess.h 28 Oct 2004 02:25:42 -0000 1.1
+++ rcopy_uaccess.h 5 Nov 2004 05:50:40 -0000 1.2
@@ -117,7 +117,7 @@
#define get_user(x, ptr) \
({ int __gux_err; \
__typeof__(*(ptr)) __gux_val; \
- __typeof__(ptr) __gux_addr = (ptr); \
+ __typeof__(*(ptr)) *__gux_addr = (ptr); \
if (ssi_rcopy_is_remote(__gux_addr)) { \
if (!ssi_rcopy_from_user(&__gux_val, __gux_addr, \
sizeof(__gux_val))) \
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
|