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
This commit is contained in:
Ingo Molnar 2025-04-11 07:40:54 +02:00
parent 0e67e587e2
commit 6af9540379

View File

@ -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;
}