From: Axel Lin <axel.lin@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Anton Vorontsov <cbouatmailru@gmail.com>,
Vasily Khoruzhick <anarsoul@gmail.com>
Subject: [PATCH] power_supply: s3c_adc_battery: Needs module.h
Date: Sun, 21 Aug 2011 15:01:41 +0800 [thread overview]
Message-ID: <1313910101.15589.0.camel@phoenix> (raw)
power/s3c_adc_battery:.c uses interfaces from linux/module.h,
so it should include that file.
This patch fixes below build error:
CC drivers/power/s3c_adc_battery.o
drivers/power/s3c_adc_battery.c:435: error: expected declaration specifiers or '...' before string constant
drivers/power/s3c_adc_battery.c:435: warning: data definition has no type or storage class
drivers/power/s3c_adc_battery.c:435: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
drivers/power/s3c_adc_battery.c:435: warning: function declaration isn't a prototype
drivers/power/s3c_adc_battery.c:436: error: expected declaration specifiers or '...' before string constant
drivers/power/s3c_adc_battery.c:436: warning: data definition has no type or storage class
drivers/power/s3c_adc_battery.c:436: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
drivers/power/s3c_adc_battery.c:436: warning: function declaration isn't a prototype
drivers/power/s3c_adc_battery.c:437: error: expected declaration specifiers or '...' before string constant
drivers/power/s3c_adc_battery.c:437: warning: data definition has no type or storage class
drivers/power/s3c_adc_battery.c:437: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
drivers/power/s3c_adc_battery.c:437: warning: function declaration isn't a prototype
make[2]: *** [drivers/power/s3c_adc_battery.o] Error 1
make[1]: *** [drivers/power] Error 2
make: *** [drivers] Error 2
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/power/s3c_adc_battery.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/power/s3c_adc_battery.c b/drivers/power/s3c_adc_battery.c
index a675e31..20770ba 100644
--- a/drivers/power/s3c_adc_battery.c
+++ b/drivers/power/s3c_adc_battery.c
@@ -9,6 +9,7 @@
*
*/
+#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
--
1.7.4.1
next reply other threads:[~2011-08-21 7:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-21 7:01 Axel Lin [this message]
2011-08-23 13:52 ` [PATCH] power_supply: s3c_adc_battery: Needs module.h Anton Vorontsov
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=1313910101.15589.0.camel@phoenix \
--to=axel.lin@gmail.com \
--cc=anarsoul@gmail.com \
--cc=cbouatmailru@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.