public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mfd: include linux/module.h for ab5500-core
@ 2011-11-07  3:19 Axel Lin
  2011-11-07  3:20 ` [PATCH 2/2] mfd: include linux/module.h for ab5500-debugfs Axel Lin
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Axel Lin @ 2011-11-07  3:19 UTC (permalink / raw)
  To: linux-kernel; +Cc: Mattias Wallin, Linus Walleij, Samuel Ortiz, Paul Gortmaker

Include linux/module.h to fix below build error:

  CC      drivers/mfd/ab5500-core.o
drivers/mfd/ab5500-core.c:1419: error: 'THIS_MODULE' undeclared here (not in a function)
drivers/mfd/ab5500-core.c:1437: error: expected declaration specifiers or '...' before string constant
drivers/mfd/ab5500-core.c:1437: warning: data definition has no type or storage class
drivers/mfd/ab5500-core.c:1437: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
drivers/mfd/ab5500-core.c:1437: warning: function declaration isn't a prototype
drivers/mfd/ab5500-core.c:1438: error: expected declaration specifiers or '...' before string constant
drivers/mfd/ab5500-core.c:1438: warning: data definition has no type or storage class
drivers/mfd/ab5500-core.c:1438: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
drivers/mfd/ab5500-core.c:1438: warning: function declaration isn't a prototype
drivers/mfd/ab5500-core.c:1439: error: expected declaration specifiers or '...' before string constant
drivers/mfd/ab5500-core.c:1439: warning: data definition has no type or storage class
drivers/mfd/ab5500-core.c:1439: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
drivers/mfd/ab5500-core.c:1439: warning: function declaration isn't a prototype
make[2]: *** [drivers/mfd/ab5500-core.o] Error 1
make[1]: *** [drivers/mfd] Error 2
make: *** [drivers] Error 2

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
I got the build error on linux-next 20111104.

 drivers/mfd/ab5500-core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mfd/ab5500-core.c b/drivers/mfd/ab5500-core.c
index 4175544..ec10629 100644
--- a/drivers/mfd/ab5500-core.c
+++ b/drivers/mfd/ab5500-core.c
@@ -13,6 +13,7 @@
  * TODO: Event handling with irq_chip. Waiting for PRCMU fw support.
  */
 
+#include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/err.h>
 #include <linux/platform_device.h>
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-11-14 17:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-07  3:19 [PATCH 1/2] mfd: include linux/module.h for ab5500-core Axel Lin
2011-11-07  3:20 ` [PATCH 2/2] mfd: include linux/module.h for ab5500-debugfs Axel Lin
2011-11-07  8:32   ` Linus Walleij
2011-11-07 16:16   ` Paul Gortmaker
2011-11-08  2:57     ` Axel Lin
2011-11-08  3:14       ` Axel Lin
2011-11-07  8:11 ` [PATCH 1/2] mfd: include linux/module.h for ab5500-core Linus Walleij
2011-11-14  0:19 ` Samuel Ortiz
2011-11-14 17:41   ` Paul Gortmaker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox