]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
x86/alternatives: Constify text_poke_addr()
authorIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 05:40:54 +0000 (07:40 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 09:01:34 +0000 (11:01 +0200)
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
arch/x86/kernel/alternative.c

index a747b0885f9a2753729190074c42a00600d5a83a..14ca17dc36e82beed6e6dc4e036413b4c647e127 100644 (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;
 }