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: 147601 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp789213lji; Wed, 26 Sep 2018 07:22:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV61ytD0zNdOy+/RavfU3JssF5am0qcL2ekSYQaHXYwzRjxfnlT8/OngkEwdH6l0rvc+aRv3v X-Received: by 2002:a17:902:b490:: with SMTP id y16-v6mr4135714plr.17.1537971723208; Wed, 26 Sep 2018 07:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537971723; cv=none; d=google.com; s=arc-20160816; b=yWJBKzKtaJry+Y4+Q5dtwBs93tmQnfwvODx2czAbw9MiztO0jyrtWqhjXxzrBgLU8M HFJCViCnEheSK20kpW2sGtGiFi2mFvY6BsT0bYH72f2mHzlF829UOjLFuf3Ctk5YbwfP NfO9CDySEaUnyyG0Sixi5HhKYOLzrrBG/KuWodUwbayz+RORA0TUJPTEo/uCrmKRetWZ YqNx6d5zSiD7ZareQudvlscoIFORlZufAs/tlvE60nbb7S63R6gcuJgTvMkp5bTVVcV8 6ML7fAeu3DY039j1Wpe2rArg6RMtppY2zOnnlQQY2qjN19kA3dn7QN7R5uWvBXn+3tR0 TRBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=4qDctgtOnRwwanLKGpd0WeN4Ska8pn7BKNbbP7Ua/a8=; b=s6CdzYqDs4zcOWrE0996XyIBhUz2kuicyB4DlvY3WURZeecvFgmWJEzJKh050BmYvZ YOumhKcJ8Yzuy16yUfFtx/XQspve7C+pY9SMOYU2UOM0+2Shyd9gSRwe1AxtF3RABesC zdFYg2l1ZwOFXD93UdXIjJ7htT1w9UVhvJIjQHVNoTnqsz5QB9oJdI22Xh/pRWX0sipf VNoIswSn4bD23oHBIyZLzhgF8BbM0VHUnl4z0XYz9ZIQiDSfozr247dnpSQJLCWurfm9 3f8xaziK+iR7Zsp0g5ornvPmSPlNQasVpIx2w2muomBNWitvKxUh48BoTok+b4YYAzc9 5GEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s195-v6si5407501pgs.492.2018.09.26.07.22.02; Wed, 26 Sep 2018 07:22:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726915AbeIZUfN (ORCPT + 5 others); 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 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 --- arch/arm/mach-omap1/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.18.0 Acked-by: Tony Lindgren 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);