From patchwork Thu Aug 25 07:54:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 1095572 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 p7P7sWhL002778 for ; Thu, 25 Aug 2011 07:54:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751918Ab1HYHy0 (ORCPT ); Thu, 25 Aug 2011 03:54:26 -0400 Received: from mail-gx0-f174.google.com ([209.85.161.174]:54246 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751974Ab1HYHyZ (ORCPT ); Thu, 25 Aug 2011 03:54:25 -0400 Received: by gxk21 with SMTP id 21so1534742gxk.19 for ; Thu, 25 Aug 2011 00:54:25 -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=QwaTtiHgSLUQLfxSizx22SgMxZYFx614qqbDE+/XmOfDe32f+3DIz+nV+SGBnorHLy vQGYZp5oxV3Ih1HoW0gwehRKqKJIMh23KNsnPXV667wVOiMxMCzxFUkmpE6+7WSGLkje kJfAyT5lLmPr+zCTk5qOYPviWHvssMpQnPj2o= Received: by 10.236.177.97 with SMTP id c61mr37124053yhm.87.1314258865114; Thu, 25 Aug 2011 00:54:25 -0700 (PDT) Received: from [218.172.235.233] (218-172-235-233.dynamic.hinet.net [218.172.235.233]) by mx.google.com with ESMTPS id z29sm543704yhn.16.2011.08.25.00.54.23 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Aug 2011 00:54:24 -0700 (PDT) Subject: [PATCH] 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 Date: Thu, 25 Aug 2011 15:54:16 +0800 Message-ID: <1314258856.1768.0.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, 25 Aug 2011 07:54:32 +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