From patchwork Mon Jan 2 02:58:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 710095 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tsMJQ1YKsz9sf9 for ; Mon, 2 Jan 2017 14:00:21 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cNspS-0007vF-Va; Mon, 02 Jan 2017 02:58:30 +0000 Received: from static-50-53-43-78.bvtn.or.frontiernet.net ([50.53.43.78] helo=[192.168.1.19]) by bombadil.infradead.org with esmtpsa (Exim 4.85_2 #1 (Red Hat Linux)) id 1cNspQ-0007v3-4i; Mon, 02 Jan 2017 02:58:28 +0000 To: LKML , linux-mtd@lists.infradead.org Subject: [PATCH] mtd: nand: oxnas_nand: fix build errors on arch/um, require HAS_IOMEM From: Randy Dunlap Message-ID: <8a756f24-4c18-690c-b898-03ecf3d71c84@infradead.org> Date: Sun, 1 Jan 2017 18:58:27 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Boris Brezillon , user-mode-linux-devel@lists.sourceforge.net, Neil Armstrong , Richard Weinberger , Jeff Dike , kbuild test robot Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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' 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 Acked-by: Neil Armstrong --- 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.