From: Axel Lin <axel.lin@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Magnus Damm <damm@opensource.se>,
Richard Purdie <rpurdie@rpsys.net>,
Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH] drivers/leds: leds-renesas-tpu.c needs module.h
Date: Tue, 09 Aug 2011 19:40:08 +0800 [thread overview]
Message-ID: <1312890008.14708.1.camel@phoenix> (raw)
leds-renesas-tpu.c needs to include linux/module.h to fix below build errors.
CC drivers/leds/leds-renesas-tpu.o
drivers/leds/leds-renesas-tpu.c:341: error: expected declaration specifiers or '...' before string constant
drivers/leds/leds-renesas-tpu.c:341: warning: data definition has no type or storage class
drivers/leds/leds-renesas-tpu.c:341: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
drivers/leds/leds-renesas-tpu.c:341: warning: function declaration isn't a prototype
drivers/leds/leds-renesas-tpu.c:342: error: expected declaration specifiers or '...' before string constant
drivers/leds/leds-renesas-tpu.c:342: warning: data definition has no type or storage class
drivers/leds/leds-renesas-tpu.c:342: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
drivers/leds/leds-renesas-tpu.c:342: warning: function declaration isn't a prototype
drivers/leds/leds-renesas-tpu.c:343: error: expected declaration specifiers or '...' before string constant
drivers/leds/leds-renesas-tpu.c:343: warning: data definition has no type or storage class
drivers/leds/leds-renesas-tpu.c:343: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
drivers/leds/leds-renesas-tpu.c:343: warning: function declaration isn't a prototype
make[2]: *** [drivers/leds/leds-renesas-tpu.o] Error 1
make[1]: *** [drivers/leds] Error 2
make: *** [drivers] Error 2
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/leds/leds-renesas-tpu.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/leds/leds-renesas-tpu.c b/drivers/leds/leds-renesas-tpu.c
index 5bfb40e1..d9a7d72 100644
--- a/drivers/leds/leds-renesas-tpu.c
+++ b/drivers/leds/leds-renesas-tpu.c
@@ -17,6 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
--
1.7.4.1
reply other threads:[~2011-08-09 11:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1312890008.14708.1.camel@phoenix \
--to=axel.lin@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=damm@opensource.se \
--cc=linux-kernel@vger.kernel.org \
--cc=rpurdie@rpsys.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox