summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-08-12 11:59:07 -0600
committerTom Rini <[email protected]>2025-08-19 11:25:28 -0600
commit58998fed9e63e8310a96229565d2996ad29d191e (patch)
treef463c8b0746b2a5931b5780438895c07f9ac33b9
parentda938a4254b4cf9d4e7b894a0a30536b0d9266c5 (diff)
sandbox: Improve dummy local_irq_save implementation
Normally, local_save_flags is used as part of the local_irq_* macros, so remove that as it's unused. Make local_irq_save do something to the passed variable so that it won't trigger unused variable warnings later. Signed-off-by: Tom Rini <[email protected]>
-rw-r--r--arch/sandbox/include/asm/system.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sandbox/include/asm/system.h b/arch/sandbox/include/asm/system.h
index 7933b6292e2..73f34683b27 100644
--- a/arch/sandbox/include/asm/system.h
+++ b/arch/sandbox/include/asm/system.h
@@ -7,10 +7,9 @@
#define __ASM_SANDBOX_SYSTEM_H
/* Define this as nops for sandbox architecture */
-#define local_irq_save(x)
+#define local_irq_save(x) do { (x) = 0; } while (0)
#define local_irq_enable()
#define local_irq_disable()
-#define local_save_flags(x)
#define local_irq_restore(x)
#endif