From patchwork Sun Aug 21 14:39:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 1083442 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 p7LEdCls012959 for ; Sun, 21 Aug 2011 14:39:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754867Ab1HUOjL (ORCPT ); Sun, 21 Aug 2011 10:39:11 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:42932 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754678Ab1HUOjL (ORCPT ); Sun, 21 Aug 2011 10:39:11 -0400 Received: by ywf7 with SMTP id 7so3045361ywf.19 for ; Sun, 21 Aug 2011 07:39:10 -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=Ooei8J/BIFFfah8uH/HtGpeHc4QzRIC22slJL6m+p5Y=; b=eXH+5eif6I4SXxU1qzxgS66RktWhsgpji6ysI0Gts86QfXSWmMrdoEojUFO1Ybjqb0 qCRu/rLD/vTL1bFJXt9KS8LwgMMgd9p+rVTPXEEbO0iCfhUYu012HOEm24sV39QiJsm5 aMGmqxXCWaiWu/wqUqDkXuDBRR2IMRHKn1vy8= Received: by 10.236.190.200 with SMTP id e48mr7849313yhn.59.1313937550279; Sun, 21 Aug 2011 07:39:10 -0700 (PDT) Received: from [218.172.225.251] (218-172-225-251.dynamic.hinet.net [218.172.225.251]) by mx.google.com with ESMTPS id o2sm4750690yhl.15.2011.08.21.07.39.08 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 21 Aug 2011 07:39:10 -0700 (PDT) Subject: [PATCH] video: ep93xx-fb: add missing include of linux/module.h From: Axel Lin To: linux-kernel@vger.kernel.org Cc: H Hartley Sweeten , Paul Mundt , linux-fbdev@vger.kernel.org Date: Sun, 21 Aug 2011 22:39:05 +0800 Message-ID: <1313937545.13671.5.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]); Sun, 21 Aug 2011 14:39:20 +0000 (UTC) ep93xx-fb.c uses interfaces from linux/module.h, so it should include that file. This patch fixes below build errors. CC drivers/video/ep93xx-fb.o drivers/video/ep93xx-fb.c:120: error: expected ')' before 'int' drivers/video/ep93xx-fb.c:122: error: expected ')' before string constant drivers/video/ep93xx-fb.c:409: error: 'THIS_MODULE' undeclared here (not in a function) drivers/video/ep93xx-fb.c:645: error: expected declaration specifiers or '...' before string constant drivers/video/ep93xx-fb.c:645: warning: data definition has no type or storage class drivers/video/ep93xx-fb.c:645: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION' drivers/video/ep93xx-fb.c:645: warning: function declaration isn't a prototype drivers/video/ep93xx-fb.c:646: error: expected declaration specifiers or '...' before string constant drivers/video/ep93xx-fb.c:646: warning: data definition has no type or storage class drivers/video/ep93xx-fb.c:646: warning: type defaults to 'int' in declaration of 'MODULE_ALIAS' drivers/video/ep93xx-fb.c:646: warning: function declaration isn't a prototype drivers/video/ep93xx-fb.c:647: error: expected declaration specifiers or '...' before string constant drivers/video/ep93xx-fb.c:647: warning: data definition has no type or storage class drivers/video/ep93xx-fb.c:647: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR' drivers/video/ep93xx-fb.c:647: warning: function declaration isn't a prototype drivers/video/ep93xx-fb.c:649: error: expected declaration specifiers or '...' before string constant drivers/video/ep93xx-fb.c:649: warning: data definition has no type or storage class drivers/video/ep93xx-fb.c:649: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE' drivers/video/ep93xx-fb.c:649: warning: function declaration isn't a prototype make[2]: *** [drivers/video/ep93xx-fb.o] Error 1 make[1]: *** [drivers/video] Error 2 make: *** [drivers] Error 2 Signed-off-by: Axel Lin Acked-by: Ryan Mallon --- drivers/video/ep93xx-fb.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/video/ep93xx-fb.c b/drivers/video/ep93xx-fb.c index 40e5f17..8133a9d 100644 --- a/drivers/video/ep93xx-fb.c +++ b/drivers/video/ep93xx-fb.c @@ -17,6 +17,7 @@ * */ +#include #include #include #include