public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
* CONFIG_NLS=m resulting in undefined reference to utf16s_to_utf8s causing build failure
@ 2011-01-12 20:10 Narendra_K
  2011-01-13  0:02 ` Jesse Barnes
  0 siblings, 1 reply; 17+ messages in thread
From: Narendra_K @ 2011-01-12 20:10 UTC (permalink / raw)
  To: linux-kernel, linux-next, jbarnes, sfr
  Cc: Matt_Domsch, Charles_Rose, Surya_Prabhakar

Hello,

As described in the post http://marc.info/?l=linux-next&m=129478755528194&w=2
setting CONFIG_NLS=m (generated by 'make allmodconfig) is causing a build
failure on linux-next as following while compiling the patch 
http://marc.info/?l=linux-pci&m=129313294112736&w=1 ([PATCH V2] Export
ACPI _DSM provided firmware instance number and string to sysfs)

drivers/built-in.o: In function `dsm_label_utf16s_to_utf8s':
/usr/src/Linux-Next/linux-next/drivers/pci/pci-label.c:195: undefined reference to `utf16s_to_utf8s'
make: *** [.tmp_vmlinux1] Error 1

The drivers/pci/pci-label.c is compiled as part of vmlinux as defined by
the makefile drivers/pci/Makefile. 

#
# ACPI Related PCI FW Functions
# ACPI _DSM provided firmware instance and string name
#
obj-$(CONFIG_ACPI)    += pci-acpi.o pci-label.o

# SMBIOS provided firmware instance and labels
obj-$(CONFIG_DMI)    += pci-label.o

This could be prevented by one of the following methods -

* forcing CONFIG_NLS=y if CONFIG_PCI=y 
* move `utf16s_to_utf8s' out of nls_base.c to a new file to be always
built into vmlinux

Please correct me if i missed something here and let me know what would be the right
way to fix this build failure.

With regards,
Narendra K

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2011-02-01 17:00 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-12 20:10 CONFIG_NLS=m resulting in undefined reference to utf16s_to_utf8s causing build failure Narendra_K
2011-01-13  0:02 ` Jesse Barnes
2011-01-13  3:23   ` Len Brown
2011-01-13 15:55     ` Jesse Barnes
2011-01-13 16:03       ` Narendra_K
2011-01-14 15:22         ` [PATCH] Fix build failure when CONFIG_NLS is set to 'm' by allmodconfig Narendra_K
2011-01-14 15:29           ` Sedat Dilek
2011-01-14 16:06             ` Narendra_K
2011-01-14 21:09           ` Stephen Rothwell
2011-01-17 19:28             ` Narendra_K
2011-01-20 18:41               ` Narendra_K
2011-01-28 15:30                 ` Narendra_K
2011-01-28 16:45                   ` Jesse Barnes
2011-02-01 16:28                     ` Narendra_K
2011-02-01 16:59                     ` Narendra_K
2011-01-14 17:14         ` CONFIG_NLS=m resulting in undefined reference to utf16s_to_utf8s causing build failure Jesse Barnes
2011-01-13 16:46     ` Narendra_K

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox