diff options
author | Ingo Molnar <mingo@kernel.org> | 2025-04-11 08:40:54 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-04-11 12:01:34 +0300 |
commit | 6af9540379628a769c63b0a101ff371d7719ec04 (patch) | |
tree | e10d5465cf4f751a30e5dc1b682d90a38cb765e1 | |
parent | 0e67e587e2e07be8d6775a1444e679c6afbc87f4 (diff) | |
download | linux-6af9540379628a769c63b0a101ff371d7719ec04.tar.xz |
x86/alternatives: Constify text_poke_addr()
This will also allow the simplification of patch_cmp().
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Juergen Gross <jgross@suse.com>
Cc: "H . Peter Anvin" <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250411054105.2341982-43-mingo@kernel.org
-rw-r--r-- | arch/x86/kernel/alternative.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index a747b0885f9a..14ca17dc36e8 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c @@ -2493,7 +2493,7 @@ static __always_inline void put_text_poke_array(void) raw_atomic_dec(refs); } -static __always_inline void *text_poke_addr(struct smp_text_poke_loc *tp) +static __always_inline void *text_poke_addr(const struct smp_text_poke_loc *tp) { return _stext + tp->rel_addr; } |