From patchwork Sun Nov 6 11:57:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Gorski X-Patchwork-Id: 123923 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D4595B6F6B for ; Sun, 6 Nov 2011 23:01:27 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1RN1Mb-0006Nh-UY; Sun, 06 Nov 2011 11:58:13 +0000 Received: from mail-bw0-f49.google.com ([209.85.214.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1RN1MV-0006Nb-5N for linux-mtd@lists.infradead.org; Sun, 06 Nov 2011 11:58:07 +0000 Received: by bkat2 with SMTP id t2so4725546bka.36 for ; Sun, 06 Nov 2011 03:58:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=a9MT/FUfqsVjzuiQWbRTYY/N6YHk2oah6kZ+2KQvP8U=; b=UboWFs737UwaEicKJjoE1krDmbLXDy7thZcl2bNf0G3khkEec6yprNJHmMCUY77FB7 3AkEn2jMunE21xh3ibKS0sKLSgRdGv5StJ/Halm/XfXyI/KJ5i9vCBCGObYL9s4kgiFo 3Xs7hZ3Cmd0dCcMDfLfgoELam/H0niWVEmj7g= Received: by 10.204.156.208 with SMTP id y16mr15634141bkw.72.1320580681687; Sun, 06 Nov 2011 03:58:01 -0800 (PST) Received: from shaker64.lan (dslb-088-073-137-229.pools.arcor-ip.net. [88.73.137.229]) by mx.google.com with ESMTPS id k13sm13642119fah.0.2011.11.06.03.57.59 (version=SSLv3 cipher=OTHER); Sun, 06 Nov 2011 03:58:00 -0800 (PST) From: Jonas Gorski To: Paul Gortmaker 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 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (jonas.gorski[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: David Woodhouse , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Florian Fainelli X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.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