]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/insn: Simplify for_each_insn_prefix()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 25 Sep 2025 08:19:05 +0000 (10:19 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 16 Oct 2025 09:13:48 +0000 (11:13 +0200)
commit45e1dccc0653c50e377dae57ef086a8d0f71061d
tree6427c4f437a4cf84a7edd2823a620c93f89368c9
parent8a5c6cbfe4a35c6a22d2f8bbaf49b8cc3f45fcc6
x86/insn: Simplify for_each_insn_prefix()

Use the new-found freedom of allowing variable declarions inside
for() to simplify the for_each_insn_prefix() iterator to no longer
need an external temporary.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
arch/x86/boot/compressed/sev-handle-vc.c
arch/x86/include/asm/insn.h
arch/x86/kernel/kprobes/core.c
arch/x86/kernel/uprobes.c
arch/x86/lib/insn-eval.c
tools/arch/x86/include/asm/insn.h