--- compat_kernel.h.orig 2006-12-17 17:27:11.000000000 +0100 +++ compat_kernel.h 2006-12-17 17:26:29.000000000 +0100 @@ -13,15 +13,6 @@ /* - * compat_exit() provides an access to the exit() function. It must - * be named compat_exit(), as exit() (with different signature) is - * provided by x86-64, arm and other (but not by i386). - */ -#define __NR_compat_exit __NR_exit -static inline _syscall1(int, compat_exit, int, exit_code); - - -/* * wait_for_completion and friends did not exist before 2.4.9. */ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 9) @@ -31,6 +22,15 @@ #else /* + * compat_exit() provides an access to the exit() function. It must + * be named compat_exit(), as exit() (with different signature) is + * provided by x86-64, arm and other (but not by i386). + */ +#define __NR_compat_exit __NR_exit +static inline _syscall1(int, compat_exit, int, exit_code); + + +/* * See compat_wait_for_completion in compat_completion.h. * compat_exit implicitly performs an unlock_kernel, in resident code, * ensuring that the thread is no longer running in module code when the