Revert "module: Make module_enable_ro() static again"

This reverts commit e6eff4376e.

It causes a build-breakage on the network test configuration so revert
it for now to hopefully add back after -rc2 is merged.

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I866dcc31dc3d3eb68929708d28935c5e13a7fb3d
This commit is contained in:
Greg Kroah-Hartman
2020-06-22 17:44:11 +02:00
parent b5e512c42c
commit 95a06095ff
2 changed files with 7 additions and 2 deletions

View File

@@ -873,6 +873,12 @@ 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 *);