summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorBorislav Petkov (AMD) <bp@alien8.de>2024-01-30 11:59:41 +0100
committerBorislav Petkov (AMD) <bp@alien8.de>2024-04-09 18:16:57 +0200
commit05d277c9a9023e11d2f30a994bde08b854af52a0 (patch)
tree041283be333f336cfb62ddce5041b3afe3e6f7d8 /arch/x86/kernel
parentx86/alternatives: Optimize optimize_nops() (diff)
downloadlinux-05d277c9a9023e11d2f30a994bde08b854af52a0.tar.xz
linux-05d277c9a9023e11d2f30a994bde08b854af52a0.zip
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
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/alternative.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
index 67dd7c371d28..7555c15b7183 100644
--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -445,9 +445,9 @@ static int alt_replace_call(u8 *instr, u8 *insn_buff, struct alt_instr *a)
void __init_or_module noinline apply_alternatives(struct alt_instr *start,
struct alt_instr *end)
{
- struct alt_instr *a;
- u8 *instr, *replacement;
u8 insn_buff[MAX_PATCH_LEN];
+ u8 *instr, *replacement;
+ struct alt_instr *a;
DPRINTK(ALT, "alt table %px, -> %px", start, end);