Skip to contentSkip to conversation

x86: irq_pipeline: fix build error

PATCH Applied Jan Kiszka 2 participants 2 messages Aug 5, 2022 x86

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 x86: irq_pipeline: fix build error

From: Jan Kiszka <[email protected]>

---
 arch/x86/kernel/alternative.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/alternative.c +1 -1
index a1e7ba5e0ac6..c08c2e21c227 100644
@@ -369,7 +369,7 @@ static __always_inline int optimize_nops_range(u8 *instr, u8 instrlen, int off)
 
 	flags = hard_local_irq_save();
 	add_nops(instr + off, nnops);
-	hard_local_irq_restore();
+	hard_local_irq_restore(flags);
 
 	DUMP_BYTES(instr, instrlen, "%px: [%d:%d) optimized NOPs: ", instr, off, i);
 
Signature · 1 line
2.35.3
#1 lore raw
Quoted 12 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

---
 arch/x86/kernel/alternative.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/alternative.c +0 -0
index a1e7ba5e0ac6..c08c2e21c227 100644

arch/x86/kernel/alternative.c static __always_inline int optimize_nops_range(u8 *instr, u8 instrlen, int off) · line 374

Quoted 7 lines
arch/x86/kernel/alternative.c +1 -1
@@ -369,7 +369,7 @@ static __always_inline int optimize_nops_range(u8 *instr, u8 instrlen, int off)
 
 	flags = hard_local_irq_save();
 	add_nops(instr + off, nnops);
-	hard_local_irq_restore();
+	hard_local_irq_restore(flags);
 
 	DUMP_BYTES(instr, instrlen, "%px: [%d:%d) optimized NOPs: ", instr, off, i);

Merged, thanks.

Signature · 1 line
Philippe.