From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933210Ab3FRTd6 (ORCPT ); Tue, 18 Jun 2013 15:33:58 -0400 Received: from merlin.infradead.org ([205.233.59.134]:53719 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753182Ab3FRTd5 (ORCPT ); Tue, 18 Jun 2013 15:33:57 -0400 Message-ID: <51C0B614.5000708@infradead.org> Date: Tue, 18 Jun 2013 12:33:40 -0700 From: Randy Dunlap User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: Stephen Rothwell CC: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org Subject: [PATCH -next] x86: fix build error and kconfig for ia32_emulation and binfmt References: <20130617185106.5950ffbf4b96acd9b2b2c834@canb.auug.org.au> <51BF4443.2040801@infradead.org> <20130618102411.258693d302bad332e920fd63@canb.auug.org.au> In-Reply-To: <20130618102411.258693d302bad332e920fd63@canb.auug.org.au> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap Fix kconfig warning and build errors on x86_64 by selecting BINFMT_ELF when COMPAT_BINFMT_ELF is being selected. warning: (IA32_EMULATION) selects COMPAT_BINFMT_ELF which has unmet direct dependencies (COMPAT && BINFMT_ELF) fs/built-in.o: In function `elf_core_dump': compat_binfmt_elf.c:(.text+0x3e093): undefined reference to `elf_core_extra_phdrs' compat_binfmt_elf.c:(.text+0x3ebcd): undefined reference to `elf_core_extra_data_size' compat_binfmt_elf.c:(.text+0x3eddd): undefined reference to `elf_core_write_extra_phdrs' compat_binfmt_elf.c:(.text+0x3f004): undefined reference to `elf_core_write_extra_data' Signed-off-by: Randy Dunlap --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) --- linux-next-20130618.orig/arch/x86/Kconfig +++ linux-next-20130618/arch/x86/Kconfig @@ -2273,6 +2273,7 @@ source "fs/Kconfig.binfmt" config IA32_EMULATION bool "IA32 Emulation" depends on X86_64 + select BINFMT_ELF select COMPAT_BINFMT_ELF select HAVE_UID16 ---help---