diff options
author | Petr Mladek <pmladek@suse.com> | 2018-01-22 10:40:32 +0100 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2018-01-22 10:40:32 +0100 |
commit | 3ccdc5190f8df12dfafff9264e406c5496401da5 (patch) | |
tree | ca4afea86b2ae2625125658b2e0af2e043e84017 /include/linux/module.h | |
parent | 6fd78a1a99c9580da49ee8f951fdce9846256375 (diff) | |
parent | 1df7338ac96558d5ae4c1a9dd5d1cb60fcd1bdb2 (diff) | |
download | linux-3ccdc5190f8df12dfafff9264e406c5496401da5.tar.gz linux-3ccdc5190f8df12dfafff9264e406c5496401da5.tar.xz |
Merge branch 'for-4.16-deprecate-printk-pf' into for-4.16
Diffstat (limited to 'include/linux/module.h')
-rw-r--r-- | include/linux/module.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index c69b49abe877..e6249795f9e2 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -606,6 +606,9 @@ int ref_module(struct module *a, struct module *b); __mod ? __mod->name : "kernel"; \ }) +/* Dereference module function descriptor */ +void *dereference_module_function_descriptor(struct module *mod, void *ptr); + /* For kallsyms to ask for address resolution. namebuf should be at * least KSYM_NAME_LEN long: a pointer to namebuf is returned if * found, otherwise NULL. */ @@ -760,6 +763,13 @@ static inline bool is_module_sig_enforced(void) return false; } +/* Dereference module function descriptor */ +static inline +void *dereference_module_function_descriptor(struct module *mod, void *ptr) +{ + return ptr; +} + #endif /* CONFIG_MODULES */ #ifdef CONFIG_SYSFS |