]> www.infradead.org Git - users/jedix/linux-maple.git/commit
asm-generic: introduce text-patching.h
authorMike Rapoport (Microsoft) <rppt@kernel.org>
Wed, 23 Oct 2024 16:27:06 +0000 (19:27 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:29:17 +0000 (21:29 -0700)
commit89a922277b955c092785940d9a9108572a2edd11
tree9fd858251ef42b390bf44648510cbffe541820de
parent2f9e84704af52c742ec94800a06e1adbd2ccd7d4
asm-generic: introduce text-patching.h

Several architectures support text patching, but they name the header
files that declare patching functions differently.

Make all such headers consistently named text-patching.h and add an empty
header in asm-generic for architectures that do not support text patching.

Link: https://lkml.kernel.org/r/20241023162711.2579610-4-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> # m68k
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Tested-by: kdevops <kdevops@lists.linux.dev>
Cc: Andreas Larsson <andreas@gaisler.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Borislav Petkov (AMD) <bp@alien8.de>
Cc: Brian Cain <bcain@quicinc.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: Guo Ren <guoren@kernel.org>
Cc: Helge Deller <deller@gmx.de>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Liam R. Howlett <Liam.Howlett@Oracle.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Richard Weinberger <richard@nod.at>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Song Liu <song@kernel.org>
Cc: Stafford Horne <shorne@gmail.com>
Cc: Steven Rostedt (Google) <rostedt@goodmis.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Uladzislau Rezki (Sony) <urezki@gmail.com>
Cc: Vineet Gupta <vgupta@kernel.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
92 files changed:
arch/alpha/include/asm/Kbuild
arch/arc/include/asm/Kbuild
arch/arm/include/asm/text-patching.h [moved from arch/arm/include/asm/patch.h with 100% similarity]
arch/arm/kernel/ftrace.c
arch/arm/kernel/jump_label.c
arch/arm/kernel/kgdb.c
arch/arm/kernel/patch.c
arch/arm/probes/kprobes/core.c
arch/arm/probes/kprobes/opt-arm.c
arch/arm64/include/asm/text-patching.h [moved from arch/arm64/include/asm/patching.h with 100% similarity]
arch/arm64/kernel/ftrace.c
arch/arm64/kernel/jump_label.c
arch/arm64/kernel/kgdb.c
arch/arm64/kernel/patching.c
arch/arm64/kernel/probes/kprobes.c
arch/arm64/kernel/traps.c
arch/arm64/net/bpf_jit_comp.c
arch/csky/include/asm/Kbuild
arch/hexagon/include/asm/Kbuild
arch/loongarch/include/asm/Kbuild
arch/m68k/include/asm/Kbuild
arch/microblaze/include/asm/Kbuild
arch/mips/include/asm/Kbuild
arch/nios2/include/asm/Kbuild
arch/openrisc/include/asm/Kbuild
arch/parisc/include/asm/text-patching.h [moved from arch/parisc/include/asm/patch.h with 100% similarity]
arch/parisc/kernel/ftrace.c
arch/parisc/kernel/jump_label.c
arch/parisc/kernel/kgdb.c
arch/parisc/kernel/kprobes.c
arch/parisc/kernel/patch.c
arch/powerpc/include/asm/kprobes.h
arch/powerpc/include/asm/text-patching.h [moved from arch/powerpc/include/asm/code-patching.h with 100% similarity]
arch/powerpc/kernel/crash_dump.c
arch/powerpc/kernel/epapr_paravirt.c
arch/powerpc/kernel/jump_label.c
arch/powerpc/kernel/kgdb.c
arch/powerpc/kernel/kprobes.c
arch/powerpc/kernel/module_32.c
arch/powerpc/kernel/module_64.c
arch/powerpc/kernel/optprobes.c
arch/powerpc/kernel/process.c
arch/powerpc/kernel/security.c
arch/powerpc/kernel/setup_32.c
arch/powerpc/kernel/setup_64.c
arch/powerpc/kernel/static_call.c
arch/powerpc/kernel/trace/ftrace.c
arch/powerpc/kernel/trace/ftrace_64_pg.c
arch/powerpc/lib/code-patching.c
arch/powerpc/lib/feature-fixups.c
arch/powerpc/lib/test-code-patching.c
arch/powerpc/lib/test_emulate_step.c
arch/powerpc/mm/book3s32/mmu.c
arch/powerpc/mm/book3s64/hash_utils.c
arch/powerpc/mm/book3s64/slb.c
arch/powerpc/mm/kasan/init_32.c
arch/powerpc/mm/mem.c
arch/powerpc/mm/nohash/44x.c
arch/powerpc/mm/nohash/book3e_pgtable.c
arch/powerpc/mm/nohash/tlb.c
arch/powerpc/mm/nohash/tlb_64e.c
arch/powerpc/net/bpf_jit_comp.c
arch/powerpc/perf/8xx-pmu.c
arch/powerpc/perf/core-book3s.c
arch/powerpc/platforms/85xx/smp.c
arch/powerpc/platforms/86xx/mpc86xx_smp.c
arch/powerpc/platforms/cell/smp.c
arch/powerpc/platforms/powermac/smp.c
arch/powerpc/platforms/powernv/idle.c
arch/powerpc/platforms/powernv/smp.c
arch/powerpc/platforms/pseries/smp.c
arch/powerpc/xmon/xmon.c
arch/riscv/errata/andes/errata.c
arch/riscv/errata/sifive/errata.c
arch/riscv/errata/thead/errata.c
arch/riscv/include/asm/text-patching.h [moved from arch/riscv/include/asm/patch.h with 100% similarity]
arch/riscv/include/asm/uprobes.h
arch/riscv/kernel/alternative.c
arch/riscv/kernel/cpufeature.c
arch/riscv/kernel/ftrace.c
arch/riscv/kernel/jump_label.c
arch/riscv/kernel/patch.c
arch/riscv/kernel/probes/kprobes.c
arch/riscv/net/bpf_jit_comp64.c
arch/riscv/net/bpf_jit_core.c
arch/sh/include/asm/Kbuild
arch/sparc/include/asm/Kbuild
arch/um/kernel/um_arch.c
arch/x86/include/asm/text-patching.h
arch/xtensa/include/asm/Kbuild
include/asm-generic/text-patching.h [new file with mode: 0644]
include/linux/text-patching.h [new file with mode: 0644]