From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-fx0-f49.google.com ([209.85.161.49]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QOmJH-0005zO-EB for linux-mtd@lists.infradead.org; Tue, 24 May 2011 07:45:48 +0000 Received: by fxm14 with SMTP id 14so5826909fxm.36 for ; Tue, 24 May 2011 00:45:45 -0700 (PDT) Subject: Re: [PATCH -next] mtd: fix physmap.h warnings From: Artem Bityutskiy To: Randy Dunlap In-Reply-To: <20110523113709.4357b4ba.randy.dunlap@oracle.com> References: <20110523154518.5e27cfb0.sfr@canb.auug.org.au> <20110523113709.4357b4ba.randy.dunlap@oracle.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 24 May 2011 10:41:27 +0300 Message-ID: <1306222887.2785.54.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: Stephen Rothwell , linux-next@vger.kernel.org, linux-mtd@lists.infradead.org, David Woodhouse , LKML Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Randy Dunlap Subject: [PATCH] mtd: fix physmap.h warnings Fix build warnings in physmap.h: include/linux/mtd/physmap.h:25: warning: 'struct platform_device' declared inside parameter list include/linux/mtd/physmap.h:25: warning: its scope is only this definition or declaration, which is probably not what you want include/linux/mtd/physmap.h:26: warning: 'struct platform_device' declared inside parameter list include/linux/mtd/physmap.h:27: warning: 'struct platform_device' declared inside parameter list Signed-off-by: Randy Dunlap Signed-off-by: Artem Bityutskiy --- include/linux/mtd/physmap.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/mtd/physmap.h b/include/linux/mtd/physmap.h index 49b9590..697cc98 100644 --- a/include/linux/mtd/physmap.h +++ b/include/linux/mtd/physmap.h @@ -19,6 +19,7 @@ #include struct map_info; +struct platform_device; struct physmap_flash_data { unsigned int width; -- 1.7.2.3