diff options
| author | Mike Rapoport (IBM) <[email protected]> | 2024-05-05 16:06:26 +0000 |
|---|---|---|
| committer | Luis Chamberlain <[email protected]> | 2024-05-14 07:31:44 +0000 |
| commit | 0a956d52e6fc31c52e5f21a134659a28e958480d (patch) | |
| tree | 9d1d1d8ec789835db2b9d46dbfa50e1357423fd6 /arch/powerpc/lib/code-patching.c | |
| parent | x86/ftrace: enable dynamic ftrace without CONFIG_MODULES (diff) | |
| download | kernel-0a956d52e6fc31c52e5f21a134659a28e958480d.tar.gz kernel-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) <[email protected]>
Signed-off-by: Luis Chamberlain <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
| -rw-r--r-- | arch/powerpc/lib/code-patching.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/lib/code-patching.c b/arch/powerpc/lib/code-patching.c index c6ab46156cda..7af791446ddf 100644 --- a/arch/powerpc/lib/code-patching.c +++ b/arch/powerpc/lib/code-patching.c @@ -225,7 +225,7 @@ void __init poking_init(void) static unsigned long get_patch_pfn(void *addr) { - if (IS_ENABLED(CONFIG_MODULES) && is_vmalloc_or_module_addr(addr)) + if (IS_ENABLED(CONFIG_EXECMEM) && is_vmalloc_or_module_addr(addr)) return vmalloc_to_pfn(addr); else return __pa_symbol(addr) >> PAGE_SHIFT; |
