diff options
| -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) | |||
| 710 | return false; | 710 | return false; |
| 711 | } | 711 | } |
| 712 | 712 | ||
| 713 | static inline bool within_module_core(unsigned long addr, | ||
| 714 | const struct module *mod) | ||
| 715 | { | ||
| 716 | return false; | ||
| 717 | } | ||
| 718 | |||
| 719 | static inline bool within_module_init(unsigned long addr, | ||
| 720 | const struct module *mod) | ||
| 721 | { | ||
| 722 | return false; | ||
| 723 | } | ||
| 724 | |||
| 725 | static inline bool within_module(unsigned long addr, const struct module *mod) | ||
| 726 | { | ||
| 727 | return false; | ||
| 728 | } | ||
| 729 | |||
| 713 | /* Get/put a kernel symbol (calls should be symmetric) */ | 730 | /* Get/put a kernel symbol (calls should be symmetric) */ |
| 714 | #define symbol_get(x) ({ extern typeof(x) x __attribute__((weak)); &(x); }) | 731 | #define symbol_get(x) ({ extern typeof(x) x __attribute__((weak)); &(x); }) |
| 715 | #define symbol_put(x) do { } while (0) | 732 | #define symbol_put(x) do { } while (0) |
