The patch titled Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed (fix) has been added to the -mm tree. Its filename is cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed (fix) From: "Kirill A. Shutemov" <k.shutemov@xxxxxxxxx> 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 <k.shutemov@xxxxxxxxx> CcDavid Woodhouse <dwmw2@xxxxxxxxxxxxx> Cc: <linux-arch@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- 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 <linux/sched.h> /* for task_struct */ #include <asm/page.h> #include <asm/string.h> +#endif #include <asm/types.h> #include <asm/ptrace.h> @@ -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; _ Patches currently in -mm which might be from k.shutemov@xxxxxxxxx are unexport-asm-userh-and-linux-userh.patch cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed.patch cleanup-asm-elfpageuserh-ifdef-__kernel__-is-no-longer-needed-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html