Skip to content

Commit d9905b2

Browse files
committed
asm-generic: introduce text-patching.h
jira LE-4694 Rebuild_History Non-Buildable kernel-6.12.0-55.43.1.el10_0 commit-author Mike Rapoport (Microsoft) <[email protected]> commit 0c3beac 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/[email protected] Signed-off-by: Mike Rapoport (Microsoft) <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> # m68k Acked-by: Arnd Bergmann <[email protected]> Reviewed-by: Luis Chamberlain <[email protected]> Tested-by: kdevops <[email protected]> Cc: Andreas Larsson <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Ard Biesheuvel <[email protected]> Cc: Borislav Petkov (AMD) <[email protected]> Cc: Brian Cain <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Christophe Leroy <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Dinh Nguyen <[email protected]> Cc: Guo Ren <[email protected]> Cc: Helge Deller <[email protected]> Cc: Huacai Chen <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Johannes Berg <[email protected]> Cc: John Paul Adrian Glaubitz <[email protected]> Cc: Kent Overstreet <[email protected]> Cc: Liam R. Howlett <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Masami Hiramatsu (Google) <[email protected]> Cc: Matt Turner <[email protected]> Cc: Max Filippov <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Michal Simek <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Richard Weinberger <[email protected]> Cc: Russell King <[email protected]> Cc: Song Liu <[email protected]> Cc: Stafford Horne <[email protected]> Cc: Steven Rostedt (Google) <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Cc: Thomas Bogendoerfer <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Uladzislau Rezki (Sony) <[email protected]> Cc: Vineet Gupta <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Andrew Morton <[email protected]> (cherry picked from commit 0c3beac) Signed-off-by: Jonathan Maple <[email protected]>
1 parent f017899 commit d9905b2

File tree

92 files changed

+110
-70
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+110
-70
lines changed

arch/alpha/include/asm/Kbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ generic-y += agp.h
55
generic-y += asm-offsets.h
66
generic-y += kvm_para.h
77
generic-y += mcs_spinlock.h
8+
generic-y += text-patching.h

arch/arc/include/asm/Kbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ generic-y += kvm_para.h
66
generic-y += mcs_spinlock.h
77
generic-y += parport.h
88
generic-y += user.h
9+
generic-y += text-patching.h
File renamed without changes.

arch/arm/kernel/ftrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <asm/insn.h>
2424
#include <asm/set_memory.h>
2525
#include <asm/stacktrace.h>
26-
#include <asm/patch.h>
26+
#include <asm/text-patching.h>
2727

2828
/*
2929
* The compiler emitted profiling hook consists of

arch/arm/kernel/jump_label.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0
22
#include <linux/kernel.h>
33
#include <linux/jump_label.h>
4-
#include <asm/patch.h>
4+
#include <asm/text-patching.h>
55
#include <asm/insn.h>
66

77
static void __arch_jump_label_transform(struct jump_entry *entry,

arch/arm/kernel/kgdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <linux/kgdb.h>
1616
#include <linux/uaccess.h>
1717

18-
#include <asm/patch.h>
18+
#include <asm/text-patching.h>
1919
#include <asm/traps.h>
2020

2121
struct dbg_reg_def_t dbg_reg_def[DBG_MAX_REG_NUM] =

arch/arm/kernel/patch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <asm/fixmap.h>
1010
#include <asm/smp_plat.h>
1111
#include <asm/opcodes.h>
12-
#include <asm/patch.h>
12+
#include <asm/text-patching.h>
1313

1414
struct patch {
1515
void *addr;

arch/arm/probes/kprobes/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <asm/cacheflush.h>
2626
#include <linux/percpu.h>
2727
#include <linux/bug.h>
28-
#include <asm/patch.h>
28+
#include <asm/text-patching.h>
2929
#include <asm/sections.h>
3030

3131
#include "../decode-arm.h"

arch/arm/probes/kprobes/opt-arm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/* for arm_gen_branch */
1515
#include <asm/insn.h>
1616
/* for patch_text */
17-
#include <asm/patch.h>
17+
#include <asm/text-patching.h>
1818

1919
#include "core.h"
2020

File renamed without changes.

0 commit comments

Comments
 (0)