]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
sandbox: Improve dummy local_irq_save implementation
authorTom Rini <trini@konsulko.com>
Tue, 12 Aug 2025 17:59:07 +0000 (11:59 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 19 Aug 2025 17:25:28 +0000 (11:25 -0600)
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 <trini@konsulko.com>
arch/sandbox/include/asm/system.h

index 7933b6292e212442bd692e8dc50f19c08cd01308..73f34683b27565d5ab47fb78bbd200c6d84627fa 100644 (file)
@@ -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