[PATCH] sandbox: setjmp: avoid conflict with noinline macro
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri Nov 28 02:42:57 PST 2025
From: Ahmad Fatoum <a.fatoum at barebox.org>
We define noinline as a macro in <linux/compiler_types.h>, which we
don't yet include here, but might in future with the Kbuild update.
Prepare for that by using the double underscore version instead, which
won't conflict.
Signed-off-by: Ahmad Fatoum <a.fatoum at barebox.org>
---
arch/sandbox/os/setjmp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/sandbox/os/setjmp.c b/arch/sandbox/os/setjmp.c
index cbf1182ed591..787675349643 100644
--- a/arch/sandbox/os/setjmp.c
+++ b/arch/sandbox/os/setjmp.c
@@ -39,7 +39,7 @@ static struct {
* (from the signal handler when it is not signal handling, read ahead
* for more information).
*/
-static void __attribute__((noinline, noreturn))
+static void __attribute__((__noinline__, noreturn))
coroutine_bootstrap(void (*entry)(void))
{
for (;;)
--
2.47.3
More information about the barebox
mailing list