[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1320635954.10415.1.camel@phoenix>
Date: Mon, 07 Nov 2011 11:19:14 +0800
From: Axel Lin <axel.lin@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Mattias Wallin <mattias.wallin@...ricsson.com>,
Linus Walleij <linus.walleij@...aro.org>,
Samuel Ortiz <sameo@...ux.intel.com>,
Paul Gortmaker <paul.gortmaker@...driver.com>
Subject: [PATCH 1/2] mfd: include linux/module.h for ab5500-core
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@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists