Re: [PATCH] Fix build failure when CONFIG_NLS is set to 'm' by allmodconfig
From: Randy Dunlap <hidden>
Date: 2011-03-28 20:22:25
Also in:
lkml
On 03/28/11 12:14, Shyam_Iyer@Dell.com wrote:
quoted
-----Original Message----- From: Randy Dunlap [mailto:randy.dunlap@oracle.com] Sent: Monday, March 28, 2011 11:02 AM To: Jesse Barnes Cc: Matthew Garrett; K, Narendra; viro@zeniv.linux.org.uk; sfr@canb.auug.org.au; linux-kernel@vger.kernel.org; linux- next@vger.kernel.org; Iyer, Shyam; Domsch, Matt; Rose, Charles; Hargrave, Jordan Subject: Re: [PATCH] Fix build failure when CONFIG_NLS is set to 'm' by allmodconfig On Fri, 4 Mar 2011 10:15:09 -0800 Jesse Barnes wrote:quoted
On Wed, 23 Feb 2011 13:17:34 +0000 Matthew Garrett [off-list ref] wrote:quoted
On Wed, Feb 23, 2011 at 06:24:31PM +0530, Narendra_K@Dell.comwrote:quoted
quoted
quoted
This patch fixes the following build breakage introduced by thepatchquoted
quoted
quoted
'[PATCH V3] Export ACPI _DSM provided firmware instance numberand string toquoted
quoted
quoted
sysfs'.First, you should include this as part of your original patch sothatquoted
quoted
the build doesn't break during bisection.quoted
This is fixed by making fs/nls/nls_base.c compile conditionallyintoquoted
quoted
quoted
vmlinux by introducing a new config option CONFIG_NLS_BASE whichisquoted
quoted
quoted
selected by (ACPI || DMI || NLS).Why?quoted
-obj-$(CONFIG_NLS) += nls/ +obj-y += nls/You seem to have just broken building any of the NLS code asmodules.quoted
quoted
quoted
menuconfig NLS tristate "Native language support" + select NLS_BASEAll CONFIG_NLS does is build nls_base.quoted
+config NLS_BASE + bool "Base NLS functions" + depends on ACPI || DMIWhat in this code depends on ACPI or DMI?quoted
-obj-$(CONFIG_NLS) += nls_base.o +obj-$(CONFIG_NLS_BASE) += nls_base.oAnd why make this change? Just have something like select NLS if (ACPI || DMI) in drivers/pci/Kconfig.Narendra, can you send me an updated patch including the build fix? Either using this approach or the other one I outlined in my othermail. This driver still has build failures in linux-next 20110328. pci-label.c:(.text+0x9a40): undefined reference to `utf16s_to_utf8s' CONFIG_NLS=mI don't get this.. you should not be getting CONFIG_NLS=m unless you have stripped you config files really.. :-) Is it possible to get your .config to hit this issue.
I haven't stripped any config files -- but they are randconfig files. Two (2) config files that cause build failures are attached. -- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code ***
Attachments
- config-r5353 [text/plain] 64839 bytes · preview
- config-r5358 [text/plain] 42465 bytes · preview