From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.free-electrons.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cOKKY-0003XM-8N for linux-mtd@lists.infradead.org; Tue, 03 Jan 2017 08:20:27 +0000 Date: Tue, 3 Jan 2017 09:20:04 +0100 From: Boris Brezillon To: Randy Dunlap Cc: LKML , linux-mtd@lists.infradead.org, kbuild test robot , Neil Armstrong , Jeff Dike , Richard Weinberger , user-mode-linux-devel@lists.sourceforge.net Subject: Re: [PATCH] mtd: nand: oxnas_nand: fix build errors on arch/um, require HAS_IOMEM Message-ID: <20170103092004.6edd6e3e@bbrezillon> In-Reply-To: <8a756f24-4c18-690c-b898-03ecf3d71c84@infradead.org> References: <8a756f24-4c18-690c-b898-03ecf3d71c84@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, 1 Jan 2017 18:58:27 -0800 Randy Dunlap wrote: > From: Randy Dunlap > > Fix build errors on arch/um, which does not support HAS_IOMEM, > while the oxnas_nand.c driver uses interfaces that are > supplied by HAS_IOMEM. > > (loadable module build:) > ERROR: "devm_ioremap_resource" [drivers/mtd/nand/oxnas_nand.ko] undefined! > or (built-in build:) > drivers/built-in.o: In function `oxnas_nand_probe': > drivers/mtd/nand/oxnas_nand.c:102: undefined reference to `devm_ioremap_resource' Applied to nand/fixes. It should appear in one of the next -rc (probably not -rc3 though). Thanks, Boris > > Signed-off-by: Randy Dunlap > Reported-by: kbuild test robot > Cc: Boris Brezillon > Cc: Neil Armstrong > Cc: Jeff Dike > Cc: Richard Weinberger > Cc: user-mode-linux-devel@lists.sourceforge.net > Cc: linux-mtd@lists.infradead.org > --- > drivers/mtd/nand/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > --- lnx-410-rc2.orig/drivers/mtd/nand/Kconfig > +++ lnx-410-rc2/drivers/mtd/nand/Kconfig > @@ -426,6 +426,7 @@ config MTD_NAND_ORION > > config MTD_NAND_OXNAS > tristate "NAND Flash support for Oxford Semiconductor SoC" > + depends on HAS_IOMEM > help > This enables the NAND flash controller on Oxford Semiconductor SoCs. >