diff options
author | Tri Vo | 2019-04-15 20:18:33 +0200 |
---|---|---|
committer | Jessica Yu | 2019-05-02 16:32:29 +0200 |
commit | dadec066d8fa7da227f623f632ea114690fecaf8 (patch) | |
tree | fe0f15396bf2a492557b5592bd7b5ca1c64b149a /include/linux/module.h | |
parent | kallsyms: store type information in its own array (diff) | |
download | kernel-qcow2-linux-dadec066d8fa7da227f623f632ea114690fecaf8.tar.gz kernel-qcow2-linux-dadec066d8fa7da227f623f632ea114690fecaf8.tar.xz kernel-qcow2-linux-dadec066d8fa7da227f623f632ea114690fecaf8.zip |
module: add stubs for within_module functions
Provide stubs for within_module_core(), within_module_init(), and
within_module() to prevent build errors when !CONFIG_MODULES.
Suggested-by: Matthew Wilcox <willy@infradead.org>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kbuild test robot <lkp@intel.com>
Link: https://marc.info/?l=linux-mm&m=155384681109231&w=2
Signed-off-by: Tri Vo <trong@android.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
Diffstat (limited to 'include/linux/module.h')
-rw-r--r-- | include/linux/module.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 3abe8176df98..7e63c340a8bf 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -710,6 +710,23 @@ static inline bool is_module_text_address(unsigned long addr) return false; } +static inline bool within_module_core(unsigned long addr, + const struct module *mod) +{ + return false; +} + +static inline bool within_module_init(unsigned long addr, + const struct module *mod) +{ + return false; +} + +static inline bool within_module(unsigned long addr, const struct module *mod) +{ + return false; +} + /* Get/put a kernel symbol (calls should be symmetric) */ #define symbol_get(x) ({ extern typeof(x) x __attribute__((weak)); &(x); }) #define symbol_put(x) do { } while (0) |