[PATCH] module: move EXPORT_SYMBOL_GPL define to module.h
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Sun Aug 29 01:52:25 EDT 2010
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
drivers/mtd/ubi/ubi-barebox.h | 1 -
include/module.h | 4 ++++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/ubi/ubi-barebox.h b/drivers/mtd/ubi/ubi-barebox.h
index 84c589f..d23228f 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 9d0e803..228a543 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;
--
1.7.1
More information about the barebox
mailing list