]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: Fix build failure when CONFIG_NLS is set to 'n'
authorSinan Kaya <okaya@kernel.org>
Sun, 30 Dec 2018 20:40:05 +0000 (20:40 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 2 Jan 2019 10:02:20 +0000 (11:02 +0100)
commitbcb05471fd1a4f7c7ac0f75489bd4aef77fefbf6
tree6c176e7ae86537f5d85dd08fa9cdc25973f1b6fa
parent26a063a42be1341c91d2282e94ece423d12bac59
ACPI: Fix build failure when CONFIG_NLS is set to 'n'

Observing link failure as follows when CONFIG_ACPI is set but
both CONFIG_NLS and CONFIG_PCI are no set:

drivers/acpi/device_sysfs.o: In function `description_show':
device_sysfs.c:(.text+0x48a): undefined reference to `utf16s_to_utf8s'

This issue was previously addressed implicitly by commit fc6c663130e9
(PCI: pci-label: Fix build failure when CONFIG_NLS is set to 'm' by
allmodconfig) causing PCI_LABEL to be selected when ACPI was set
which caused NLS to be selected too in that case.

However, after commit e1482fc8f54de (PCI/ACPI: Allow ACPI to be built
without CONFIG_PCI set) it is possible to build ACPI support without
PCI, so make ACPI select NLS directly to cover that case.

Fixes: e1482fc8f54de (PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set)
Signed-off-by: Sinan Kaya <okaya@kernel.org>
[ rjw: Changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/Kconfig