From: "Kirill A. Shutemov" asm/elf.h, asm/page.h and asm/user.h don't export to userspace now, so we can drop #ifdef __KERNEL__ for them. Signed-off-by: Kirill A. Shutemov CcDavid Woodhouse Cc: Signed-off-by: Andrew Morton --- include/asm-powerpc/elf.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff -puN include/asm-powerpc/elf.h~cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix include/asm-powerpc/elf.h --- a/include/asm-powerpc/elf.h~cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix +++ a/include/asm-powerpc/elf.h @@ -1,9 +1,11 @@ #ifndef _ASM_POWERPC_ELF_H #define _ASM_POWERPC_ELF_H +#ifdef __KERNEL__ #include /* for task_struct */ #include #include +#endif #include #include @@ -158,6 +160,7 @@ typedef elf_vrreg_t elf_vrregset_t[ELF_N typedef elf_vrreg_t elf_vrregset_t32[ELF_NVRREG32]; #endif +#ifdef __KERNEL__ /* * This is used to ensure we don't load something for the wrong architecture. */ @@ -219,6 +222,8 @@ extern int dump_task_altivec(struct task #define ELF_CORE_XFPREG_TYPE NT_PPC_VMX #endif +#endif /* __KERNEL__ */ + /* ELF_HWCAP yields a mask that user programs can use to figure out what instruction set this cpu supports. This could be done in userspace, but it's not easy, and we've already done it here. */ @@ -236,6 +241,8 @@ extern int dump_task_altivec(struct task } while (0) #endif /* __powerpc64__ */ +#ifdef __KERNEL__ + #ifdef __powerpc64__ # define SET_PERSONALITY(ex, ibcs2) \ do { \ @@ -263,6 +270,8 @@ do { \ # define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX) #endif /* __powerpc64__ */ +#endif /* __KERNEL__ */ + extern int dcache_bsize; extern int icache_bsize; extern int ucache_bsize; _