]> err.no Git - linux-2.6/commitdiff
powerpc: Don't export asm/asm-compat.h to userspace
authorAdrian Bunk <bunk@kernel.org>
Mon, 23 Jun 2008 17:48:21 +0000 (03:48 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 1 Jul 2008 01:28:09 +0000 (11:28 +1000)
asm/asm-compat.h doesn't seem to be intended for userspace usage.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/Kbuild
include/asm-powerpc/cputable.h

index bca352e033c39ff78c2adf71c6f1038e3620eaaf..34a0a8db010405f56b5badd087aee9a8063a36ed 100644 (file)
@@ -23,7 +23,6 @@ header-y += sigcontext.h
 header-y += statfs.h
 header-y += ps3fb.h
 
-unifdef-y += asm-compat.h
 unifdef-y += bootx.h
 unifdef-y += byteorder.h
 unifdef-y += cputable.h
index 3e5b2deafe4493fe955bbbbd61971227d62f6bce..3189ac5d0a69aab2cf885a13f4edf83f38983aac 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef __ASM_POWERPC_CPUTABLE_H
 #define __ASM_POWERPC_CPUTABLE_H
 
-#include <asm/asm-compat.h>
-
 #define PPC_FEATURE_32                 0x80000000
 #define PPC_FEATURE_64                 0x40000000
 #define PPC_FEATURE_601_INSTR          0x20000000
@@ -32,6 +30,9 @@
 #define PPC_FEATURE_PPC_LE             0x00000001
 
 #ifdef __KERNEL__
+
+#include <asm/asm-compat.h>
+
 #ifndef __ASSEMBLY__
 
 /* This structure can grow, it's real size is used by head.S code