From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Date: Fri, 02 Nov 2018 16:14:12 +0000 Subject: [PATCH v2] arch/sh: mach-kfr2r09: fix struct mtd_oob_ops build warning Message-Id: <99e03339-5fab-bcdf-902d-962084db86e8@infradead.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: LKML Cc: Geert Uytterhoeven , Miquel Raynal , Jacopo Mondi , Yoshinori Sato , Rich Felker , Magnus Damm , linux-mtd@lists.infradead.org, linux-sh@vger.kernel.org, Andrew Morton From: Randy Dunlap arch/sh/boards/mach-kfr2r09/setup.c does not need to #include , and doing so causes a build warning, so drop that header file. In file included from ../arch/sh/boards/mach-kfr2r09/setup.c:28: ../include/linux/mtd/onenand.h:225:12: warning: 'struct mtd_oob_ops' declared inside parameter list will not be visible outside of this definition or declaration struct mtd_oob_ops *ops); Fixes: 33893d7aa000 ("sh: kfr2r09 board support - NAND flash") Reported-by: Geert Uytterhoeven Suggested-by: Miquel Raynal Signed-off-by: Randy Dunlap Reviewed-by: Miquel Raynal Acked-by: Jacopo Mondi Cc: Yoshinori Sato Cc: Rich Felker Cc: Jacopo Mondi Cc: Magnus Damm Cc: linux-mtd@lists.infradead.org Cc: linux-sh@vger.kernel.org --- v2: fix the Fixes commit ID and add Ack from Jacopo. arch/sh/boards/mach-kfr2r09/setup.c | 1 - 1 file changed, 1 deletion(-) --- linux-next-20181101.orig/arch/sh/boards/mach-kfr2r09/setup.c +++ linux-next-20181101/arch/sh/boards/mach-kfr2r09/setup.c @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include