From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay4-d.mail.gandi.net ([217.70.183.196]:47146 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750812AbbLZEKP (ORCPT ); Fri, 25 Dec 2015 23:10:15 -0500 Date: Fri, 25 Dec 2015 20:10:01 -0800 From: Josh Triplett To: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= Cc: linux-kernel@vger.kernel.org, Jeff Dike , Richard Weinberger , user-mode-linux-devel@lists.sourceforge.net, "Paul E . McKenney" , Michal Marek , Andrew Morton , Linus Torvalds , stable@vger.kernel.org Subject: Re: [PATCH v3] um: Fix build error and kconfig for i386 Message-ID: <20151226041000.GA22571@x> References: <1450959131-5113-1-git-send-email-mic@digikod.net> <20151225013409.GC12977@x> <567D8ED5.7000409@digikod.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <567D8ED5.7000409@digikod.net> Sender: stable-owner@vger.kernel.org List-ID: On Fri, Dec 25, 2015 at 07:45:41PM +0100, Micka�l Sala�n wrote: > > On 25/12/2015 02:34, Josh Triplett wrote: > > On Thu, Dec 24, 2015 at 01:12:11PM +0100, Micka�l Sala�n wrote: > >> Fix build error by generating elfcore.o only when ELF_CORE (depending on > >> COREDUMP) is selected: > >> > >> arch/x86/um/built-in.o: In function `elf_core_write_extra_phdrs': > >> (.text+0x3e62): undefined reference to `dump_emit' > >> arch/x86/um/built-in.o: In function `elf_core_write_extra_data': > >> (.text+0x3eef): undefined reference to `dump_emit' > >> > >> Fixes: 5d2acfc7b974 ("kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT") > >> Signed-off-by: Micka�l Sala�n > >> Cc: Jeff Dike > >> Cc: Richard Weinberger > >> Cc: Josh Triplett > >> Cc: Paul E. McKenney > >> Cc: Michal Marek > >> Cc: Andrew Morton > >> Cc: Linus Torvalds > > > > It looks like ELF_CORE depends on COREDUMP, but not on BINFMT_ELF. > > Should it? What happens if you build this with ELF_CORE=y and > > BINFMT_ELF=n? Does that configuration even make sense? > > It build fine with ELF_CORE=y and BINFMT_ELF=n but does not seem > useful. Nevertheless, it's the same for all architectures (cf. > init/Kconfig): ELF_CORE only depends on COREDUMP. As long as that builds, then this patch doesn't introduce an un-buildable Kconfig configuration, so it seems reasonable. Thanks again for producing a new version. Reviewed-by: Josh Triplett