Revert "Revert "module: Make module_enable_ro() static again""

This reverts commit 95a06095ff as it
should now be resolved.

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I521215f77e69ac4d26d4977d2a16a40298d96509
This commit is contained in:
Greg Kroah-Hartman
2020-06-23 14:33:13 +02:00
parent 44699162a3
commit 94d5fade60
2 changed files with 2 additions and 7 deletions

View File

@@ -873,12 +873,6 @@ extern int module_sysfs_initialized;
#define __MODULE_STRING(x) __stringify(x)
#ifdef CONFIG_STRICT_MODULE_RWX
extern void module_enable_ro(const struct module *mod, bool after_init);
#else
static inline void module_enable_ro(const struct module *mod, bool after_init) { }
#endif
#ifdef CONFIG_GENERIC_BUG
void module_bug_finalize(const Elf_Ehdr *, const Elf_Shdr *,
struct module *);