History

module: Make module_enable_ro() static again

Now that module_enable_ro() has no more external users, make it static again.

Josh Poimboeuf committed 6 years ago

Commit e6eff431 parent 5b384f92 files · +2 −7Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/module.h+0−6
@@ -858,12 +858,6 @@ extern int module_sysfs_initialized; · 857 unmodified lines
858 858
859#define __MODULE_STRING(x) __stringify(x)859#define __MODULE_STRING(x) __stringify(x)
860 860
861#ifdef CONFIG_STRICT_MODULE_RWX
862extern void module_enable_ro(const struct module *mod, bool after_init);
863#else
864static inline void module_enable_ro(const struct module *mod, bool after_init) { }
865#endif
866
867#ifdef CONFIG_GENERIC_BUG861#ifdef CONFIG_GENERIC_BUG
868void module_bug_finalize(const Elf_Ehdr *, const Elf_Shdr *,862void module_bug_finalize(const Elf_Ehdr *, const Elf_Shdr *,
869 struct module *);863 struct module *);