Skip to contentSkip to conversation

Fix access_ok for xen/ia64

PATCH In review Tian, Kevin 2 participants 2 messages Feb 27, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix access_ok for xen/ia64

xen/ia64 uaccess is still linux style with different declaration as common xen. It's meaningless to patch original file with many #ifdef XEN, and so instead copy that file to create a new xen specific uaccess file, with unused lines removed. May need render later.

Or else it breaks compilation on xen-unstable.

Signed-off-by Kevin Tian <[email protected]>

Thanks,
Kevin

xen/ia64 uaccess is still linux style with different declaration as common xen. It's meaningless to patch original file with many #ifdef XEN, and so instead copy that file to create a new xen specific uaccess file, with unused lines removed. May need render later.

Or else it breaks compilation on xen-unstable.

Signed-off-by Kevin Tian <[email protected]>

xen/include/asm-ia64/config.h +0 -6
diff -r 5541ea99106a xen/include/asm-ia64/config.h
@@ -193,11 +193,6 @@
 
 #define find_first_set_bit(x)	(ffs(x)-1)	// FIXME: Is this right???
 
-// from include/asm-x86/*/uaccess.h
-#define array_access_ok(addr,count,size)			\
-    (likely(sizeof(count) <= 4) /* disallow 64-bit counts */ &&  \
-     access_ok(type,addr,count*size))
-
 // see drivers/char/console.c
 #ifndef VALIDATE_VT
 #define	OPT_CONSOLE_STR "com1"
@@ -304,7 +299,6 @@
 #define raw_smp_processor_id()	0
 #endif
 
-
 #ifndef __ASSEMBLY__
 #include <linux/linkage.h>
 #endif
xen/include/asm-ia64/linux-xen/asm/README.origin +0 -1
diff -r 5541ea99106a xen/include/asm-ia64/linux-xen/asm/README.origin
@@ -20,4 +20,3 @@
 system.h		-> linux/include/asm-ia64/system.h
 tlbflush.h		-> linux/include/asm-ia64/tlbflush.h
 types.h			-> linux/include/asm-ia64/types.h
-uaccess.h		-> linux/include/asm-ia64/uaccess.h
xen/include/asm-ia64/uaccess.h new file +285 -0

285 lines not on this page · raw message

xen/include/asm-ia64/linux-xen/asm/uaccess.h deleted +0 -415

415 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 8 lines · Kevin

xen/ia64 uaccess is still linux style with different declaration as common xen. It's meaningless to patch original file with many #ifdef XEN, and so instead copy that file to create a new xen specific uaccess file, with unused lines removed. May need render later.

Or else it breaks compilation on xen-unstable.

Signed-off-by Kevin Tian <[email protected]>

Please, unless you are fixing a regression in unstable, these patches should be going to the ia64 mailing list and initially should be applied to the ia64-unstable tree.

-- Keir