diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index 76aee0ed3b5b76798fe07be00b7237b5b52909c5..0813262ea6169579071b09ba68508daedb5d0460 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -20,7 +20,6 @@ config LOONGARCH select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE select ARCH_HAS_PTE_SPECIAL select ARCH_HAS_SET_MEMORY - select ARCH_HAS_STRICT_MODULE_RWX select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST select ARCH_INLINE_READ_LOCK if !PREEMPTION select ARCH_INLINE_READ_LOCK_BH if !PREEMPTION diff --git a/include/linux/module.h b/include/linux/module.h index e0223172a574683a389ef60205d850ee5344c6e4..82f6ecc9360ae99a8b58fc9be99d84ef740766bb 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -891,13 +891,8 @@ extern const struct kobj_type module_ktype; #define __MODULE_STRING(x) __stringify(x) -#ifdef CONFIG_STRICT_MODULE_RWX extern void module_enable_ro(const struct module *mod, bool after_init); extern void module_disable_ro(const struct module *mod); -#else -static inline void module_enable_ro(const struct module *mod, bool after_init) { } -static inline void module_disable_ro(const struct module *mod) { } -#endif #ifdef CONFIG_GENERIC_BUG void module_bug_finalize(const Elf_Ehdr *, const Elf_Shdr *,