Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758785AbcCVLnk (ORCPT ); Tue, 22 Mar 2016 07:43:40 -0400 Received: from e36.co.us.ibm.com ([32.97.110.154]:37704 "EHLO e36.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758687AbcCVLn3 (ORCPT ); Tue, 22 Mar 2016 07:43:29 -0400 X-IBM-Helo: d03dlp03.boulder.ibm.com X-IBM-MailFrom: jejb@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org;linux-scsi@vger.kernel.org Message-ID: <1458646999.2408.3.camel@linux.vnet.ibm.com> Subject: Re: [PATCH] scsi: ufs: select CONFIG_NLS From: James Bottomley To: Arnd Bergmann , Vinayak Holikatti , "Martin K. Petersen" Cc: Yaniv Gardi , Stephen Boyd , Hannes Reinecke , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 22 Mar 2016 07:43:19 -0400 In-Reply-To: <1458217819-2802119-1-git-send-email-arnd@arndb.de> References: <1458217819-2802119-1-git-send-email-arnd@arndb.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16032211-0021-0000-0000-00001ADE12CB Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1284 Lines: 35 On Thu, 2016-03-17 at 13:29 +0100, Arnd Bergmann wrote: > 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 > Fixes: b573d484e4ff ("scsi: ufs: add support to read device and > string descriptors") > --- > drivers/scsi/ufs/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig > index 5f4530744e0a..097894a1fab5 100644 > --- a/drivers/scsi/ufs/Kconfig > +++ b/drivers/scsi/ufs/Kconfig > @@ -37,6 +37,7 @@ config SCSI_UFSHCD > depends on SCSI && SCSI_DMA > select PM_DEVFREQ > select DEVFREQ_GOV_SIMPLE_ONDEMAND > + select NLS This looks like a bad solution: CONFIG_NLS is nothing more than a menu selector for the NLS subsystem. The problem is that selecting it will allow a kernel to be build with NLS and without NLS_DEFAULT which is going to cause all sorts of interesting problems on boot. I think you really mean depends on NLS here. James