aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/module.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index d44df9b2c131..f807f15bebbe 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -266,7 +266,7 @@ extern int modules_disabled; /* for sysctl */
266/* Get/put a kernel symbol (calls must be symmetric) */ 266/* Get/put a kernel symbol (calls must be symmetric) */
267void *__symbol_get(const char *symbol); 267void *__symbol_get(const char *symbol);
268void *__symbol_get_gpl(const char *symbol); 268void *__symbol_get_gpl(const char *symbol);
269#define symbol_get(x) ((typeof(&x))(__symbol_get(VMLINUX_SYMBOL_STR(x)))) 269#define symbol_get(x) ((typeof(&x))(__symbol_get(__stringify(x))))
270 270
271/* modules using other modules: kdb wants to see this. */ 271/* modules using other modules: kdb wants to see this. */
272struct module_use { 272struct module_use {
@@ -575,7 +575,7 @@ extern void __noreturn __module_put_and_exit(struct module *mod,
575#ifdef CONFIG_MODULE_UNLOAD 575#ifdef CONFIG_MODULE_UNLOAD
576int module_refcount(struct module *mod); 576int module_refcount(struct module *mod);
577void __symbol_put(const char *symbol); 577void __symbol_put(const char *symbol);
578#define symbol_put(x) __symbol_put(VMLINUX_SYMBOL_STR(x)) 578#define symbol_put(x) __symbol_put(__stringify(x))
579void symbol_put_addr(void *addr); 579void symbol_put_addr(void *addr);
580 580
581/* Sometimes we know we already have a refcount, and it's easier not 581/* Sometimes we know we already have a refcount, and it's easier not