summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2025-04-11 08:40:54 +0300
committerIngo Molnar <mingo@kernel.org>2025-04-11 12:01:34 +0300
commit6af9540379628a769c63b0a101ff371d7719ec04 (patch)
treee10d5465cf4f751a30e5dc1b682d90a38cb765e1
parent0e67e587e2e07be8d6775a1444e679c6afbc87f4 (diff)
downloadlinux-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.c2
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;
}