diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2015-07-20 08:57:20 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2015-07-22 14:32:04 +1000 |
commit | 97a0a064a322d6810e31ca3e0f559f77a6ba6320 (patch) | |
tree | 2e78ec468dbac07458bbef261d65e3208b728e00 | |
parent | 92371e12e46a65da9569df6d9285ba7a5ba72af6 (diff) |
define-kallsyms_cmp_symbol_t-as-function-type-to-simplify-the-code-fix
fix CONFIG_MODULES=n build
Cc: Minfei Huang <mnfhuang@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Rob Jones <rob.jones@codethink.co.uk>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | include/linux/module.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index a5739a689eba..848f08474170 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -273,6 +273,9 @@ const struct exception_table_entry *search_exception_tables(unsigned long add); struct notifier_block; +typedef int (*kallsyms_cmp_symbol_t)(void *, const char *, + struct module *, unsigned long); + #ifdef CONFIG_MODULES extern int modules_disabled; /* for sysctl */ @@ -563,9 +566,6 @@ int module_get_kallsym(unsigned int symnum, unsigned long *value, char *type, /* Look for this name: can be of form module:name. */ unsigned long module_kallsyms_lookup_name(const char *name); -typedef int (*kallsyms_cmp_symbol_t)(void *, const char *, - struct module *, unsigned long); - int module_kallsyms_on_each_symbol(kallsyms_cmp_symbol_t fn, void *data); extern void __module_put_and_exit(struct module *mod, long code) |