Skip to content

Commit 05d277c

Browse files
committed
x86/alternatives: Sort local vars in apply_alternatives()
In a reverse x-mas tree. No functional changes. Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20240130105941.19707-5-bp@alien8.de
1 parent c3a3cb5 commit 05d277c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kernel/alternative.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,9 @@ static int alt_replace_call(u8 *instr, u8 *insn_buff, struct alt_instr *a)
445445
void __init_or_module noinline apply_alternatives(struct alt_instr *start,
446446
struct alt_instr *end)
447447
{
448-
struct alt_instr *a;
449-
u8 *instr, *replacement;
450448
u8 insn_buff[MAX_PATCH_LEN];
449+
u8 *instr, *replacement;
450+
struct alt_instr *a;
451451

452452
DPRINTK(ALT, "alt table %px, -> %px", start, end);
453453

0 commit comments

Comments
 (0)