mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
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:
parent
0e67e587e2
commit
6af9540379
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user