summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm
diff options
context:
space:
mode:
authorMike Rapoport (IBM) <rppt@kernel.org>2024-05-05 19:06:26 +0300
committerLuis Chamberlain <mcgrof@kernel.org>2024-05-14 00:31:44 -0700
commit0a956d52e6fc31c52e5f21a134659a28e958480d (patch)
tree9d1d1d8ec789835db2b9d46dbfa50e1357423fd6 /arch/powerpc/mm
parent14e56fb2ed1dbc3c3171d12ab435b0f691f6f215 (diff)
downloadlinux-stable-0a956d52e6fc31c52e5f21a134659a28e958480d.tar.gz
linux-stable-0a956d52e6fc31c52e5f21a134659a28e958480d.tar.bz2
linux-stable-0a956d52e6fc31c52e5f21a134659a28e958480d.zip
powerpc: use CONFIG_EXECMEM instead of CONFIG_MODULES where appropriate
There are places where CONFIG_MODULES guards the code that depends on memory allocation being done with module_alloc(). Replace CONFIG_MODULES with CONFIG_EXECMEM in such places. Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r--arch/powerpc/mm/book3s32/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/book3s32/mmu.c b/arch/powerpc/mm/book3s32/mmu.c
index 100f999871bc..625fe7d08e06 100644
--- a/arch/powerpc/mm/book3s32/mmu.c
+++ b/arch/powerpc/mm/book3s32/mmu.c
@@ -184,7 +184,7 @@ unsigned long __init mmu_mapin_ram(unsigned long base, unsigned long top)
static bool is_module_segment(unsigned long addr)
{
- if (!IS_ENABLED(CONFIG_MODULES))
+ if (!IS_ENABLED(CONFIG_EXECMEM))
return false;
if (addr < ALIGN_DOWN(MODULES_VADDR, SZ_256M))
return false;