diff options
Diffstat (limited to 'include/linux/module.h')
| -rw-r--r-- | include/linux/module.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index a8f2c0aa4c32..098bdb7bfacf 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
| @@ -77,6 +77,7 @@ search_extable(const struct exception_table_entry *first, | |||
| 77 | void sort_extable(struct exception_table_entry *start, | 77 | void sort_extable(struct exception_table_entry *start, |
| 78 | struct exception_table_entry *finish); | 78 | struct exception_table_entry *finish); |
| 79 | void sort_main_extable(void); | 79 | void sort_main_extable(void); |
| 80 | void trim_init_extable(struct module *m); | ||
| 80 | 81 | ||
| 81 | #ifdef MODULE | 82 | #ifdef MODULE |
| 82 | #define MODULE_GENERIC_TABLE(gtype,name) \ | 83 | #define MODULE_GENERIC_TABLE(gtype,name) \ |
| @@ -362,6 +363,12 @@ struct module | |||
| 362 | local_t ref; | 363 | local_t ref; |
| 363 | #endif | 364 | #endif |
| 364 | #endif | 365 | #endif |
| 366 | |||
| 367 | #ifdef CONFIG_CONSTRUCTORS | ||
| 368 | /* Constructor functions. */ | ||
| 369 | ctor_fn_t *ctors; | ||
| 370 | unsigned int num_ctors; | ||
| 371 | #endif | ||
| 365 | }; | 372 | }; |
| 366 | #ifndef MODULE_ARCH_INIT | 373 | #ifndef MODULE_ARCH_INIT |
| 367 | #define MODULE_ARCH_INIT {} | 374 | #define MODULE_ARCH_INIT {} |
| @@ -696,4 +703,21 @@ static inline void module_remove_modinfo_attrs(struct module *mod) | |||
| 696 | 703 | ||
| 697 | #define __MODULE_STRING(x) __stringify(x) | 704 | #define __MODULE_STRING(x) __stringify(x) |
| 698 | 705 | ||
| 706 | |||
| 707 | #ifdef CONFIG_GENERIC_BUG | ||
| 708 | int module_bug_finalize(const Elf_Ehdr *, const Elf_Shdr *, | ||
| 709 | struct module *); | ||
| 710 | void module_bug_cleanup(struct module *); | ||
| 711 | |||
| 712 | #else /* !CONFIG_GENERIC_BUG */ | ||
| 713 | |||
| 714 | static inline int module_bug_finalize(const Elf_Ehdr *hdr, | ||
| 715 | const Elf_Shdr *sechdrs, | ||
| 716 | struct module *mod) | ||
| 717 | { | ||
| 718 | return 0; | ||
| 719 | } | ||
| 720 | static inline void module_bug_cleanup(struct module *mod) {} | ||
| 721 | #endif /* CONFIG_GENERIC_BUG */ | ||
| 722 | |||
| 699 | #endif /* _LINUX_MODULE_H */ | 723 | #endif /* _LINUX_MODULE_H */ |
