]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
x86: Add #ifdef CONFIG_COMPAT to <asm/sys_ia32.h>
authorH. Peter Anvin <hpa@zytor.com>
Sun, 19 Feb 2012 22:02:46 +0000 (14:02 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 20 Feb 2012 20:52:05 +0000 (12:52 -0800)
Unfortunately a lot of the compat types are guarded with CONFIG_COMPAT
or the equivalent, so add a similar guard to <asm/sys_ia32.h> to avoid
compilation failures when CONFIG_COMPAT=n.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/sys_ia32.h

index 68da87bfb5a3d3eddea2962e6e3ac7ed14fc4f46..3fda9db488199c0b073e66ab7e1aded2e030620e 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef _ASM_X86_SYS_IA32_H
 #define _ASM_X86_SYS_IA32_H
 
+#ifdef CONFIG_COMPAT
+
 #include <linux/compiler.h>
 #include <linux/linkage.h>
 #include <linux/types.h>
@@ -81,4 +83,7 @@ asmlinkage long sys32_ipc(u32, int, int, int, compat_uptr_t, u32);
 
 asmlinkage long sys32_fanotify_mark(int, unsigned int, u32, u32, int,
                                    const char __user *);
+
+#endif /* CONFIG_COMPAT */
+
 #endif /* _ASM_X86_SYS_IA32_H */