From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932333Ab1IANBw (ORCPT ); Thu, 1 Sep 2011 09:01:52 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:37970 "HELO mailout-de.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S932107Ab1IANBv (ORCPT ); Thu, 1 Sep 2011 09:01:51 -0400 X-Authenticated: #10250065 X-Provags-ID: V01U2FsdGVkX1/573cIAAn5S75c/Ca7MonDDszdxAHDISiAyLiYkf tdYg/guyyZQpsS Message-ID: <4E5F823C.9000200@gmx.de> Date: Thu, 01 Sep 2011 13:01:48 +0000 From: Florian Tobias Schandinat User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110818 Icedove/3.0.11 MIME-Version: 1.0 To: Axel Lin CC: linux-kernel@vger.kernel.org, Sascha Hauer , Paul Mundt , linux-fbdev@vger.kernel.org Subject: Re: [PATCH RESEND] video: mxsfb: add missing include of linux/module.h References: <1314835919.2208.1.camel@phoenix> In-Reply-To: <1314835919.2208.1.camel@phoenix> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/01/2011 12:11 AM, Axel Lin wrote: > Include linux/module.h to fix below build error: > > from drivers/video/mxsfb.c:42: > arch/arm/mach-mxs/include/mach/memory.h:22:1: warning: this is the location of the previous definition > drivers/video/mxsfb.c:574: error: 'THIS_MODULE' undeclared here (not in a function) > drivers/video/mxsfb.c:893: warning: data definition has no type or storage class > drivers/video/mxsfb.c:893: warning: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' > drivers/video/mxsfb.c:893: warning: parameter names (without types) in function declaration > drivers/video/mxsfb.c:917: error: expected declaration specifiers or '...' before string constant > drivers/video/mxsfb.c:917: warning: data definition has no type or storage class > drivers/video/mxsfb.c:917: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION' > drivers/video/mxsfb.c:917: warning: function declaration isn't a prototype > drivers/video/mxsfb.c:918: error: expected declaration specifiers or '...' before string constant > drivers/video/mxsfb.c:918: warning: data definition has no type or storage class > drivers/video/mxsfb.c:918: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR' > drivers/video/mxsfb.c:918: warning: function declaration isn't a prototype > drivers/video/mxsfb.c:919: error: expected declaration specifiers or '...' before string constant > drivers/video/mxsfb.c:919: warning: data definition has no type or storage class > drivers/video/mxsfb.c:919: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE' > drivers/video/mxsfb.c:919: warning: function declaration isn't a prototype > make[2]: *** [drivers/video/mxsfb.o] Error 1 > make[1]: *** [drivers/video] Error 2 > make: *** [drivers] Error 2 > > Signed-off-by: Axel Lin Applied. Thanks, Florian Tobias Schandinat > --- > drivers/video/mxsfb.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c > index 0b2f2dd..d837d63 100644 > --- a/drivers/video/mxsfb.c > +++ b/drivers/video/mxsfb.c > @@ -39,6 +39,7 @@ > * the required value in the imx_fb_videomode structure. > */ > > +#include > #include > #include > #include