diff options
Diffstat (limited to 'include/linux/module.h')
-rw-r--r-- | include/linux/module.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index a7bc6e7b43a7..098bdb7bfacf 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
@@ -363,6 +363,12 @@ struct module | |||
363 | local_t ref; | 363 | local_t ref; |
364 | #endif | 364 | #endif |
365 | #endif | 365 | #endif |
366 | |||
367 | #ifdef CONFIG_CONSTRUCTORS | ||
368 | /* Constructor functions. */ | ||
369 | ctor_fn_t *ctors; | ||
370 | unsigned int num_ctors; | ||
371 | #endif | ||
366 | }; | 372 | }; |
367 | #ifndef MODULE_ARCH_INIT | 373 | #ifndef MODULE_ARCH_INIT |
368 | #define MODULE_ARCH_INIT {} | 374 | #define MODULE_ARCH_INIT {} |
@@ -697,4 +703,21 @@ static inline void module_remove_modinfo_attrs(struct module *mod) | |||
697 | 703 | ||
698 | #define __MODULE_STRING(x) __stringify(x) | 704 | #define __MODULE_STRING(x) __stringify(x) |
699 | 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 | |||
700 | #endif /* _LINUX_MODULE_H */ | 723 | #endif /* _LINUX_MODULE_H */ |