From patchwork Thu Sep 1 00:11:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 1118122 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p810CDKb009623 for ; Thu, 1 Sep 2011 00:12:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755796Ab1IAAMM (ORCPT ); Wed, 31 Aug 2011 20:12:12 -0400 Received: from mail-gw0-f46.google.com ([74.125.83.46]:46815 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755536Ab1IAAMM (ORCPT ); Wed, 31 Aug 2011 20:12:12 -0400 Received: by gwaa12 with SMTP id a12so546198gwa.19 for ; Wed, 31 Aug 2011 17:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=3b1bQC7F3g2O4wiGVFDol7y0FFAeUVsRFZ/jeWfZy+4=; b=GoKRZlvHhrBx8/kOFvSDiKOhjwqKaF5VDHv/LKQQIIbYqhYz+w9/eVWAqQhoh8tUXk aJ7RBJM7F5B52pN/sY0qTMDY0FzKZ4CnOmz7J9ek0YksCQNgkYRgrkpvYEWQFqDYmhfE I2a0IWBUHCf5mphvjtlRn3e9KS8V01mRHX+jI= Received: by 10.236.177.73 with SMTP id c49mr5633872yhm.89.1314835931272; Wed, 31 Aug 2011 17:12:11 -0700 (PDT) Received: from [218.172.235.4] (218-172-235-4.dynamic.hinet.net [218.172.235.4]) by mx.google.com with ESMTPS id r28sm102308yhm.66.2011.08.31.17.12.07 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 31 Aug 2011 17:12:09 -0700 (PDT) Subject: [PATCH RESEND] video: mxsfb: add missing include of linux/module.h From: Axel Lin To: linux-kernel@vger.kernel.org Cc: Sascha Hauer , Paul Mundt , linux-fbdev@vger.kernel.org, Florian Tobias Schandinat Date: Thu, 01 Sep 2011 08:11:59 +0800 Message-ID: <1314835919.2208.1.camel@phoenix> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 01 Sep 2011 00:12:14 +0000 (UTC) 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 --- 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