From 8badf4abcbd313275299662ad27fcfc5aa8bb6a2 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 16 Jun 2008 10:22:31 -0700 Subject: [PATCH] --- yaml --- r: 98161 b: refs/heads/master c: 626a16c16e13e4afaba382bfc0354a3555f5231c h: refs/heads/master i: 98159: 3e4e1e3b477c940d7311ad1348d83c5155bb23ad v: v3 --- [refs] | 2 +- trunk/arch/mn10300/kernel/process.c | 1 - trunk/arch/mn10300/kernel/setup.c | 1 - trunk/fs/binfmt_elf.c | 3 --- trunk/fs/exec.c | 8 ++++++-- trunk/include/linux/Kbuild | 3 +++ trunk/include/linux/a.out.h | 8 -------- 7 files changed, 10 insertions(+), 16 deletions(-) diff --git a/[refs] b/[refs] index 822294452392..0849090a1daf 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: dab8c6deaf1d654d09c3de8bd4c286d424df255a +refs/heads/master: 626a16c16e13e4afaba382bfc0354a3555f5231c diff --git a/trunk/arch/mn10300/kernel/process.c b/trunk/arch/mn10300/kernel/process.c index 3b0d579fc15d..9c623c88387b 100644 --- a/trunk/arch/mn10300/kernel/process.c +++ b/trunk/arch/mn10300/kernel/process.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include diff --git a/trunk/arch/mn10300/kernel/setup.c b/trunk/arch/mn10300/kernel/setup.c index 6b7ce2636851..017121ce896f 100644 --- a/trunk/arch/mn10300/kernel/setup.c +++ b/trunk/arch/mn10300/kernel/setup.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include #include diff --git a/trunk/fs/binfmt_elf.c b/trunk/fs/binfmt_elf.c index 0fa95b198e6e..d48ff5f370f4 100644 --- a/trunk/fs/binfmt_elf.c +++ b/trunk/fs/binfmt_elf.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -548,7 +547,6 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs) struct { struct elfhdr elf_ex; struct elfhdr interp_elf_ex; - struct exec interp_ex; } *loc; loc = kmalloc(sizeof(*loc), GFP_KERNEL); @@ -680,7 +678,6 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs) } /* Get the exec headers */ - loc->interp_ex = *((struct exec *)bprm->buf); loc->interp_elf_ex = *((struct elfhdr *)bprm->buf); break; } diff --git a/trunk/fs/exec.c b/trunk/fs/exec.c index 9448f1b50b4a..da94a6f05df3 100644 --- a/trunk/fs/exec.c +++ b/trunk/fs/exec.c @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include @@ -61,6 +60,11 @@ #include #endif +#ifdef __alpha__ +/* for /sbin/loader handling in search_binary_handler() */ +#include +#endif + int core_uses_pid; char core_pattern[CORENAME_MAX_SIZE] = "core"; int suid_dumpable = 0; @@ -1155,7 +1159,7 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs) { int try,retval; struct linux_binfmt *fmt; -#if defined(__alpha__) && defined(CONFIG_ARCH_SUPPORTS_AOUT) +#ifdef __alpha__ /* handle /sbin/loader.. */ { struct exec * eh = (struct exec *) bprm->buf; diff --git a/trunk/include/linux/Kbuild b/trunk/include/linux/Kbuild index 93b98856007a..b6fbb2573e88 100644 --- a/trunk/include/linux/Kbuild +++ b/trunk/include/linux/Kbuild @@ -166,6 +166,9 @@ unifdef-y += acct.h unifdef-y += adb.h unifdef-y += adfs_fs.h unifdef-y += agpgart.h +ifeq ($(wildcard include/asm-$(SRCARCH)/a.out.h),include/asm-$(SRCARCH)/a.out.h) +unifdef-y += a.out.h +endif unifdef-y += apm_bios.h unifdef-y += atalk.h unifdef-y += atmdev.h diff --git a/trunk/include/linux/a.out.h b/trunk/include/linux/a.out.h index 208f4e8ed304..e86dfca44589 100644 --- a/trunk/include/linux/a.out.h +++ b/trunk/include/linux/a.out.h @@ -1,8 +1,6 @@ #ifndef __A_OUT_GNU_H__ #define __A_OUT_GNU_H__ -#ifdef CONFIG_ARCH_SUPPORTS_AOUT - #define __GNU_EXEC_MACROS__ #ifndef __STRUCT_EXEC_OVERRIDE__ @@ -277,10 +275,4 @@ struct relocation_info #endif /* no N_RELOCATION_INFO_DECLARED. */ #endif /*__ASSEMBLY__ */ -#else /* CONFIG_ARCH_SUPPORTS_AOUT */ -#ifndef __ASSEMBLY__ -struct exec { -}; -#endif -#endif /* CONFIG_ARCH_SUPPORTS_AOUT */ #endif /* __A_OUT_GNU_H__ */