Re: [PATCH v5 11/15] arch: make execmem setup available regardless of CONFIG_MODULES

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 22/4/24 11:44, Mike Rapoport wrote:
From: "Mike Rapoport (IBM)" <rppt@xxxxxxxxxx>

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@xxxxxxxxxx>
---
  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@xxxxxxxxxx>





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux