Commit c80fa12e authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Martin K. Petersen

scsi: ufs: select CONFIG_NLS

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: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: b573d484 ("scsi: ufs: add support to read device and string descriptors")
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent ef3fb242
...@@ -37,6 +37,7 @@ config SCSI_UFSHCD ...@@ -37,6 +37,7 @@ config SCSI_UFSHCD
depends on SCSI && SCSI_DMA depends on SCSI && SCSI_DMA
select PM_DEVFREQ select PM_DEVFREQ
select DEVFREQ_GOV_SIMPLE_ONDEMAND select DEVFREQ_GOV_SIMPLE_ONDEMAND
select NLS
---help--- ---help---
This selects the support for UFS devices in Linux, say Y and make 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 sure that you know the name of your UFS host adapter (the card
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment