9
0
Fork 0

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>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2010-08-29 07:52:25 +02:00 committed by Sascha Hauer
parent 77d2a851fd
commit eaa223e795
2 changed files with 4 additions and 1 deletions

View File

@ -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(...)

View File

@ -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;