lkml.org 
[lkml]   [2024]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v5 11/15] arch: make execmem setup available regardless of CONFIG_MODULES
From
On 22/4/24 11:44, Mike Rapoport wrote:
> From: "Mike Rapoport (IBM)" <rppt@kernel.org>
>
> execmem does not depend on modules, on the contrary modules use
> execmem.
>
> To make execmem available when CONFIG_MODULES=n, for instance for
> kprobes, split execmem_params initialization out from
> arch/*/kernel/module.c and compile it when CONFIG_EXECMEM=y
>
> Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
> ---
> arch/arm/kernel/module.c | 43 ----------
> arch/arm/mm/init.c | 45 +++++++++++
> arch/arm64/kernel/module.c | 140 ---------------------------------
> arch/arm64/mm/init.c | 140 +++++++++++++++++++++++++++++++++
> arch/loongarch/kernel/module.c | 19 -----
> arch/loongarch/mm/init.c | 21 +++++
> arch/mips/kernel/module.c | 22 ------
> arch/mips/mm/init.c | 23 ++++++
> arch/nios2/kernel/module.c | 20 -----
> arch/nios2/mm/init.c | 21 +++++
> arch/parisc/kernel/module.c | 20 -----
> arch/parisc/mm/init.c | 23 +++++-
> arch/powerpc/kernel/module.c | 63 ---------------
> arch/powerpc/mm/mem.c | 64 +++++++++++++++
> arch/riscv/kernel/module.c | 44 -----------
> arch/riscv/mm/init.c | 45 +++++++++++
> arch/s390/kernel/module.c | 27 -------
> arch/s390/mm/init.c | 30 +++++++
> arch/sparc/kernel/module.c | 19 -----
> arch/sparc/mm/Makefile | 2 +
> arch/sparc/mm/execmem.c | 21 +++++
> arch/x86/kernel/module.c | 27 -------
> arch/x86/mm/init.c | 29 +++++++
> 23 files changed, 463 insertions(+), 445 deletions(-)
> create mode 100644 arch/sparc/mm/execmem.c

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>


\
 
 \ /
  Last update: 2024-05-27 17:55    [W:0.078 / U:1.688 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site