From patchwork Fri Sep 14 22:41:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Peter_H=C3=BCwe?= X-Patchwork-Id: 184050 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (unknown [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C6BD02C0088 for ; Sat, 15 Sep 2012 08:38:23 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TCeVg-0006LG-Fi; Fri, 14 Sep 2012 22:37:16 +0000 Received: from mailout-de.gmx.net ([213.165.64.22]) by merlin.infradead.org with smtp (Exim 4.76 #1 (Red Hat Linux)) id 1TCeVd-0006JW-D5 for linux-mtd@lists.infradead.org; Fri, 14 Sep 2012 22:37:14 +0000 Received: (qmail invoked by alias); 14 Sep 2012 22:37:08 -0000 Received: from dslb-084-056-042-056.pools.arcor-ip.net (EHLO localhost.localdomain) [84.56.42.56] by mail.gmx.net (mp002) with SMTP; 15 Sep 2012 00:37:08 +0200 X-Authenticated: #12255092 X-Provags-ID: V01U2FsdGVkX1/dqVoDg2XdnZqIxShL1gspdtF6SQ3RbPpkivmbdo c6qJA4ulb5aLwa From: Peter Huewe To: David Woodhouse Subject: [PATCH] mtd/nand/docg4: Add missing HAS_IOMEM dependency Date: Sat, 15 Sep 2012 00:41:09 +0200 Message-Id: <1347662469-1604-1-git-send-email-peterhuewe@gmx.de> X-Mailer: git-send-email 1.7.8.6 X-Y-GMX-Trusted: 0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (peterhuewe[at]gmx.de) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [213.165.64.22 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Arnd Bergmann , Artem Bityutskiy , linux-kernel@vger.kernel.org, Huang Shijie , linux-mtd@lists.infradead.org, Peter Huewe , Shubhrajyoti D X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org While building an allyesconfig for UML I received this error message(s): drivers/mtd/nand/docg4.c: In function 'probe_docg4': drivers/mtd/nand/docg4.c:1272:2: error: implicit declaration of function 'ioremap' [-Werror=implicit-function-declaration] drivers/mtd/nand/docg4.c:1272:10: warning: assignment makes pointer from integer without a cast [enabled by default] drivers/mtd/nand/docg4.c:1327:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration] which is caused by the missing implementations on UML. This patch adds this missing HAS_IOMEM dependency and prevents the driver from being build on platforms with no HAS_IOMEM Signed-off-by: Peter Huewe Acked-by: Mike Dunn --- drivers/mtd/nand/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index 8ca4176..3e2f75d 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig @@ -356,7 +356,7 @@ config MTD_NAND_DISKONCHIP_BBTWRITE config MTD_NAND_DOCG4 tristate "Support for DiskOnChip G4 (EXPERIMENTAL)" - depends on EXPERIMENTAL + depends on EXPERIMENTAL && HAS_IOMEM select BCH select BITREVERSE help