[PATCH] hide kernel only code in asm-powerpc/elf.h
    Olaf Hering 
    olaf at aepfle.de
       
    Sat Jan 26 05:08:41 EST 2008
    
    
  
stuff inside CONFIG_* should not be exported via make headers-install
Signed-off-by: Olaf Hering <olaf at aepfle.de>
---
 include/asm-powerpc/elf.h |    2 ++
 1 file changed, 2 insertions(+)
--- a/include/asm-powerpc/elf.h
+++ b/include/asm-powerpc/elf.h
@@ -420,6 +420,7 @@ do {									\
 /* Keep this the last entry.  */
 #define R_PPC64_NUM		107
 
+#ifdef __KERNEL__
 #ifdef CONFIG_SPU_BASE
 /* Notes used in ET_CORE. Note name is "SPU/<fd>/<filename>". */
 #define NT_SPU		1
@@ -427,5 +428,6 @@ do {									\
 #define ARCH_HAVE_EXTRA_ELF_NOTES
 
 #endif /* CONFIG_SPU_BASE */
+#endif /* __KERNEL__ */
 
 #endif /* _ASM_POWERPC_ELF_H */
    
    
More information about the Linuxppc-dev
mailing list