From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751748Ab1KFL6F (ORCPT ); Sun, 6 Nov 2011 06:58:05 -0500 Received: from mail-bw0-f46.google.com ([209.85.214.46]:43995 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751493Ab1KFL6D (ORCPT ); Sun, 6 Nov 2011 06:58:03 -0500 From: Jonas Gorski To: Paul Gortmaker Cc: linux-mtd@lists.infradead.org, David Woodhouse , linux-kernel@vger.kernel.org, Florian Fainelli Subject: [PATCH] MTD: MAPS: bcm963xx-flash.c: explicitly include module.h Date: Sun, 6 Nov 2011 12:57:31 +0100 Message-Id: <1320580651-4860-1-git-send-email-jonas.gorski@gmail.com> X-Mailer: git-send-email 1.7.2.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org module.h was previously implicitly included through mtd/mtd.h. Fixes the following build failure after the module.h cleanup: CC drivers/mtd/maps/bcm963xx-flash.o drivers/mtd/maps/bcm963xx-flash.c: In function 'bcm963xx_probe': drivers/mtd/maps/bcm963xx-flash.c:208:29: error: 'THIS_MODULE' undeclared (first use in this function) drivers/mtd/maps/bcm963xx-flash.c:208:29: note: each undeclared identifier is reported only once for each function it appears in drivers/mtd/maps/bcm963xx-flash.c: At top level: drivers/mtd/maps/bcm963xx-flash.c:255:12: error: 'THIS_MODULE' undeclared here (not in a function) drivers/mtd/maps/bcm963xx-flash.c:272:16: error: expected declaration specifiers or '...' before string constant drivers/mtd/maps/bcm963xx-flash.c:272:1: warning: data definition has no type or storage class drivers/mtd/maps/bcm963xx-flash.c:272:1: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE' drivers/mtd/maps/bcm963xx-flash.c:272:16: warning: function declaration isn't a prototype drivers/mtd/maps/bcm963xx-flash.c:273:20: error: expected declaration specifiers or '...' before string constant drivers/mtd/maps/bcm963xx-flash.c:273:1: warning: data definition has no type or storage class drivers/mtd/maps/bcm963xx-flash.c:273:1: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION' drivers/mtd/maps/bcm963xx-flash.c:273:20: warning: function declaration isn't a prototype drivers/mtd/maps/bcm963xx-flash.c:274:15: error: expected declaration specifiers or '...' before string constant drivers/mtd/maps/bcm963xx-flash.c:274:1: warning: data definition has no type or storage class drivers/mtd/maps/bcm963xx-flash.c:274:1: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR' drivers/mtd/maps/bcm963xx-flash.c:274:15: warning: function declaration isn't a prototype drivers/mtd/maps/bcm963xx-flash.c:275:15: error: expected declaration specifiers or '...' before string constant drivers/mtd/maps/bcm963xx-flash.c:275:1: warning: data definition has no type or storage class drivers/mtd/maps/bcm963xx-flash.c:275:1: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR' drivers/mtd/maps/bcm963xx-flash.c:275:15: warning: function declaration isn't a prototype drivers/mtd/maps/bcm963xx-flash.c:276:15: error: expected declaration specifiers or '...' before string constant drivers/mtd/maps/bcm963xx-flash.c:276:1: warning: data definition has no type or storage class drivers/mtd/maps/bcm963xx-flash.c:276:1: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR' drivers/mtd/maps/bcm963xx-flash.c:276:15: warning: function declaration isn't a prototype make[7]: *** [drivers/mtd/maps/bcm963xx-flash.o] Error 1 Signed-off-by: Jonas Gorski --- This patch is based on next-20111104 and probably should go through Paul's module.h cleanup tree. drivers/mtd/maps/bcm963xx-flash.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/maps/bcm963xx-flash.c b/drivers/mtd/maps/bcm963xx-flash.c index 608967f..736ca10 100644 --- a/drivers/mtd/maps/bcm963xx-flash.c +++ b/drivers/mtd/maps/bcm963xx-flash.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include -- 1.7.2.5