From patchwork Wed Sep 26 14:20:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10616049 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E3D6215A6 for ; Wed, 26 Sep 2018 14:22:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D72C129BB2 for ; Wed, 26 Sep 2018 14:22:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB39B2B047; Wed, 26 Sep 2018 14:22:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1EB6429BB2 for ; Wed, 26 Sep 2018 14:22:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=U+A6rTU3Y3gGkVx/UK+u2UffEjOK2VF45d4zhw5bOqA=; b=Dbz sFNuVVX8S+/HksVw8NZg6ZtuT7QGskqXoDFADDUM63YFI9dMlZ9MtsQ1cuybvt+fyBbGmK3Qj31Wq 3s/71JqnPME7AFXoeDE+mreyRwz5eDIHUvqMXj7cdYml23SQMMZWsoWHzw+yUgrHQ8lDw2O65M0iJ 1mtfHHq9WuXAlCMtq/yhzCj2IN4ucCEgPGC5AZYbzlGbZp3vC/Hq/93LuYGlG3P9TBNBOG/+jTvmz Je8ciOHILJHh8gKyiKltXSwxHopTIwOdnAccJL4qb3r9cG4DnVNJNJsBTJ3/wyWrdKr+UcqGCqj05 yCFMFLu4cFZjrW5fI7DBRhJZG9h7PJA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g5Ahr-0003jw-UV; Wed, 26 Sep 2018 14:22:23 +0000 Received: from mout.kundenserver.de ([217.72.192.74]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g5AhL-0003hl-4q; Wed, 26 Sep 2018 14:22:00 +0000 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1Mt7st-1fl2IA2oCf-00tUey; Wed, 26 Sep 2018 16:20:31 +0200 From: Arnd Bergmann To: Boris Brezillon , Miquel Raynal , linux-mtd@lists.infradead.org Subject: [PATCH] [v2] ARM: omap1: add nand_chip declaration Date: Wed, 26 Sep 2018 16:20:16 +0200 Message-Id: <20180926142029.619397-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:+2aEDEHPhuPtkatMxBfGCkomV23AdYrmV8miquPBds4A+qZuiJC vhNH/rcNJfz5LrBB0Z8e5Z5fLTjmMt3NGjxsAv5gl/m7f+/jBO8B9PL/H1bARUou72E2AXz D1ojdoavvMK19Qjg6n2NY1JfnMVFG1tGwpar+H8MbvJAo9VT1SRASkcyuuBwDEvyGNUN3Ee uzL7YwgacpfyGaCCPkaJw== X-UI-Out-Filterresults: notjunk:1;V01:K0:ydeKJruM30k=:ywtJ4AYRcf3ctcX6dMYAsu ZaIVNU3UV/V5wc6W38mUpHjfMyW9RhQ0uSAVmIw2qCtzfZ+f9SyFhM6WVGqJqWBMMBM9DXv4U 60mbSiMxHZPFUs6KKiGQHPQXe8AN9uC8+/lWi78Vn8PxTALdYGwtAWi0OY9mwFQNkHY8QAslb uPqWuHbex8m9vjaOdnjWx1k77YrrvOu0USbmrDKDbUNc56ZN7ypj8ftlmp0DKb6oUsQ5m6YJb kqD7M7WAZCjlIjk7cgeJASnwt4v85w25+n/ETSFV//Vp/MzI80EW5IK4Dhw6nozhG4uXvvZ7E tfwB3U30YQKIo3hyMkct3E+DhYxE9Y5P735OK7oSXGnQD4tqi6n0g/iiuBLHbqX+5HnnewsQX hYdo7y0c+G8pvQwz3OZwTd24h0+fmcR1OHSED8s44h2L2SCcl4+1b0vn9VierOlzbxn1a2T2n DZ3DFMX2NrWfmFxC3M4vnfVhmrPPJIVRjfXPbv2o51Qdq362vUIOg2p21PImCeegSKUiwsMv9 VthVnRJYiV3sXBQLTjpxzpooatoS2wijXzOp+kEtJtvjD0E04pIOuhrCT/hzQgZBH56bhXcCU rV6SEkMpoe9kdcKM3Wpyjzm0F26hahSbyXqVkIC3KTnWqxSfMNMbPRwf//fYlU3dJkY9fVTgO 6Li8LcuBOsIQqIDmqwO44UFpiTslOJ5lhb92Xn140LEahWkcwVYb/1ht0juzari9pg6c= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180926_072151_518470_446A7FE7 X-CRM114-Status: GOOD ( 10.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-omap@vger.kernel.org, Arnd Bergmann , Wolfram Sang , Tony Lindgren , Aaro Koskinen , linux-kernel@vger.kernel.org, Paul Burton , Alexander Sverdlin , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Recent MTD changes caused a minor build regression on OMAP1: In file included from arch/arm/mach-omap1/devices.c:31: arch/arm/mach-omap1/common.h:85:39: error: 'struct nand_chip' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] Fixes: 1002aed789bc ("mtd: rawnand: plat_nand: Pass a nand_chip object to all platform_nand_ctrl hooks") Signed-off-by: Arnd Bergmann ---- v2: remove unused linux/mtd/mtd.h inclusion Acked-by: Tony Lindgren --- arch/arm/mach-omap1/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap1/common.h b/arch/arm/mach-omap1/common.h index 11b87a4c84d4..504b959ba5cf 100644 --- a/arch/arm/mach-omap1/common.h +++ b/arch/arm/mach-omap1/common.h @@ -26,7 +26,6 @@ #ifndef __ARCH_ARM_MACH_OMAP1_COMMON_H #define __ARCH_ARM_MACH_OMAP1_COMMON_H -#include #include #include @@ -82,6 +81,7 @@ void omap1_restart(enum reboot_mode, const char *); extern void __init omap_check_revision(void); +struct nand_chip; extern void omap1_nand_cmd_ctl(struct nand_chip *this, int cmd, unsigned int ctrl);