The module code currently assumes RWX. This can be fixed if desired, but
for now just reflect it in Kconfig to avoid the runtime panic.

Signed-off-by: Ahmad Fatoum <[email protected]>
---
 arch/arm/cpu/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/cpu/Kconfig b/arch/arm/cpu/Kconfig
index fe0d1e470578..04b1585679f3 100644
--- a/arch/arm/cpu/Kconfig
+++ b/arch/arm/cpu/Kconfig
@@ -4,7 +4,7 @@ comment "Processor Type"
 
 config CPU_32
        bool
-       select HAS_MODULES
+       select HAS_MODULES if !ARM_MMU_PERMISSIONS
        select HAVE_MOD_ARCH_SPECIFIC
        select HAS_DMA
        select ARCH_HAS_ZERO_PAGE
-- 
2.47.3


Reply via email to