]> Gentwo Git Trees - linux/.git/commit
x86/alternatives: Simplify and clean up patch_cmp()
authorIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 05:40:55 +0000 (07:40 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 09:01:35 +0000 (11:01 +0200)
commit3e6f47573ec3ed1d9dc50243fbcf50c87f740853
treeb60ba65f5beb8138b1428a998401bb9ac4f2fea1
parent6af9540379628a769c63b0a101ff371d7719ec04
x86/alternatives: Simplify and clean up patch_cmp()

- No need to cast over to 'struct smp_text_poke_loc *', void * is just fine
  for a binary search,

- Use the canonical (a, b) input parameter nomenclature of cmp_func_t
  functions and rename the input parameters from (tp, elt) to
  (tpl_a, tpl_b).

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-44-mingo@kernel.org
arch/x86/kernel/alternative.c