[tip:,x86/alternatives] x86/alternatives: Sort local vars in apply_alternatives()

Message ID 170783855789.398.9923650720518736029.tip-bot2@tip-bot2
State New
Headers
Series [tip:,x86/alternatives] x86/alternatives: Sort local vars in apply_alternatives() |

Commit Message

tip-bot2 for Thomas Gleixner Feb. 13, 2024, 3:35 p.m. UTC
  The following commit has been merged into the x86/alternatives branch of tip:

Commit-ID:     cadb7de3170e22893b617276c297216039aad88d
Gitweb:        https://git.kernel.org/tip/cadb7de3170e22893b617276c297216039aad88d
Author:        Borislav Petkov (AMD) <bp@alien8.de>
AuthorDate:    Tue, 30 Jan 2024 11:59:41 +01:00
Committer:     Borislav Petkov (AMD) <bp@alien8.de>
CommitterDate: Tue, 13 Feb 2024 16:27:46 +01:00

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
---
 arch/x86/kernel/alternative.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
index 1ceaaab..9aaf703 100644
--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -440,9 +440,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);