diff options
Diffstat (limited to 'include/linux/module.h')
| -rw-r--r-- | include/linux/module.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index ebfb0e153c6a..42999fe2dbd0 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
| @@ -135,7 +135,7 @@ void trim_init_extable(struct module *m); | |||
| 135 | #ifdef MODULE | 135 | #ifdef MODULE |
| 136 | /* Creates an alias so file2alias.c can find device table. */ | 136 | /* Creates an alias so file2alias.c can find device table. */ |
| 137 | #define MODULE_DEVICE_TABLE(type, name) \ | 137 | #define MODULE_DEVICE_TABLE(type, name) \ |
| 138 | extern const struct type##_device_id __mod_##type##__##name##_device_table \ | 138 | extern const typeof(name) __mod_##type##__##name##_device_table \ |
| 139 | __attribute__ ((unused, alias(__stringify(name)))) | 139 | __attribute__ ((unused, alias(__stringify(name)))) |
| 140 | #else /* !MODULE */ | 140 | #else /* !MODULE */ |
| 141 | #define MODULE_DEVICE_TABLE(type, name) | 141 | #define MODULE_DEVICE_TABLE(type, name) |
| @@ -444,7 +444,7 @@ extern void __module_put_and_exit(struct module *mod, long code) | |||
| 444 | #define module_put_and_exit(code) __module_put_and_exit(THIS_MODULE, code) | 444 | #define module_put_and_exit(code) __module_put_and_exit(THIS_MODULE, code) |
| 445 | 445 | ||
| 446 | #ifdef CONFIG_MODULE_UNLOAD | 446 | #ifdef CONFIG_MODULE_UNLOAD |
| 447 | unsigned long module_refcount(struct module *mod); | 447 | int module_refcount(struct module *mod); |
| 448 | void __symbol_put(const char *symbol); | 448 | void __symbol_put(const char *symbol); |
| 449 | #define symbol_put(x) __symbol_put(VMLINUX_SYMBOL_STR(x)) | 449 | #define symbol_put(x) __symbol_put(VMLINUX_SYMBOL_STR(x)) |
| 450 | void symbol_put_addr(void *addr); | 450 | void symbol_put_addr(void *addr); |
