summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-08-29 07:52:25 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-08-30 14:36:09 +0200
commiteaa223e79533d31e9a84b50fca3592ce7ccf694e (patch)
tree724679c0e2cc1284a2771cd31b1188b062d55e37
parent77d2a851fd09397cecb25bc5637b80b9ec51507f (diff)
downloadbarebox-eaa223e79533d31e9a84b50fca3592ce7ccf694e.tar.gz
barebox-eaa223e79533d31e9a84b50fca3592ce7ccf694e.tar.xz
module: move EXPORT_SYMBOL_GPL define to module.h
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/mtd/ubi/ubi-barebox.h1
-rw-r--r--include/module.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/ubi-barebox.h b/drivers/mtd/ubi/ubi-barebox.h
index 84c589f5d2..d23228f648 100644
--- a/drivers/mtd/ubi/ubi-barebox.h
+++ b/drivers/mtd/ubi/ubi-barebox.h
@@ -172,7 +172,6 @@ struct cdev_ {
#define module_put(...) do { } while (0)
#define module_init(...)
#define module_exit(...)
-#define EXPORT_SYMBOL_GPL(...)
#define module_param_call(...)
#define MODULE_PARM_DESC(...)
#define MODULE_VERSION(...)
diff --git a/include/module.h b/include/module.h
index 9d0e803344..228a543fcb 100644
--- a/include/module.h
+++ b/include/module.h
@@ -36,6 +36,9 @@ struct module * load_module(void *mod_image, unsigned long len);
#define EXPORT_SYMBOL(sym) \
__EXPORT_SYMBOL(sym, "")
+#define EXPORT_SYMBOL_GPL(sym) \
+ __EXPORT_SYMBOL(sym, "")
+
struct module {
/* Unique handle for this module */
char name[MODULE_NAME_LEN];
@@ -71,6 +74,7 @@ int apply_relocate_add(Elf_Shdr *sechdrs,
struct module *mod);
#else
#define EXPORT_SYMBOL(sym)
+#define EXPORT_SYMBOL_GPL(sym)
#endif /* CONFIG_MODULES */
extern struct list_head module_list;