scsi: ufs: select CONFIG_NLS
authorArnd Bergmann <arnd@arndb.de>
Thu, 17 Mar 2016 12:29:52 +0000 (13:29 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 18 Mar 2016 19:35:23 +0000 (15:35 -0400)
A recent change to ufshcd introduced a call to utf16s_to_utf8s, a
function that is provided by the NLS module, so we get a link error when
that is not present:

drivers/scsi/built-in.o: In function `ufshcd_read_string_desc':
:(.text+0x124d0): undefined reference to `utf16s_to_utf8s'

This adds a Kconfig 'select' statement to avoid the build error.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: b573d484e4ff ("scsi: ufs: add support to read device and string descriptors")
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/Kconfig

index 5f4530744e0af7bd1ea8e4ca76fffe3a87d11d56..097894a1fab5f6e2a326d75cf2a2bf27694fd291 100644 (file)
@@ -37,6 +37,7 @@ config SCSI_UFSHCD
        depends on SCSI && SCSI_DMA
        select PM_DEVFREQ
        select DEVFREQ_GOV_SIMPLE_ONDEMAND
+       select NLS
        ---help---
        This selects the support for UFS devices in Linux, say Y and make
          sure that you know the name of your UFS host adapter (the card
This page took 0.027049 seconds and 5 git commands to generate.