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: 10616047 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 C5D9115A6 for ; Wed, 26 Sep 2018 14:22:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB3972B0B7 for ; Wed, 26 Sep 2018 14:22:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B91CB2B0F1; Wed, 26 Sep 2018 14:22:03 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5FD192B0C1 for ; Wed, 26 Sep 2018 14:22:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726915AbeIZUfN (ORCPT ); Wed, 26 Sep 2018 16:35:13 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:60095 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726768AbeIZUfN (ORCPT ); Wed, 26 Sep 2018 16:35:13 -0400 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 Cc: Arnd Bergmann , Aaro Koskinen , Tony Lindgren , Alexander Sverdlin , Paul Burton , Wolfram Sang , Suman Anna , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.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= Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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);