All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH dovetail-5.10.y] x86: irq_pipeline: fix build error
@ 2022-08-05  8:04 Jan Kiszka
  2022-08-05  9:00 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2022-08-05  8:04 UTC (permalink / raw)
  To: Philippe Gerum, Xenomai

From: Jan Kiszka <jan.kiszka@siemens.com>

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 arch/x86/kernel/alternative.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
index a1e7ba5e0ac6..c08c2e21c227 100644
--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -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);
 
-- 
2.35.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH dovetail-5.10.y] x86: irq_pipeline: fix build error
  2022-08-05  8:04 [PATCH dovetail-5.10.y] x86: irq_pipeline: fix build error Jan Kiszka
@ 2022-08-05  9:00 ` Philippe Gerum
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2022-08-05  9:00 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Xenomai


Jan Kiszka <jan.kiszka@siemens.com> writes:

> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>  arch/x86/kernel/alternative.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
> index a1e7ba5e0ac6..c08c2e21c227 100644
> --- a/arch/x86/kernel/alternative.c
> +++ b/arch/x86/kernel/alternative.c
> @@ -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.

-- 
Philippe.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-05  9:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-05  8:04 [PATCH dovetail-5.10.y] x86: irq_pipeline: fix build error Jan Kiszka
2022-08-05  9:00 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.