[PATCH 2/8] fixup! kvx: Implement setjmp/longjmp/initjmp
Ahmad Fatoum
ahmad at a3f.at
Wed Mar 17 10:46:37 GMT 2021
Signed-off-by: Ahmad Fatoum <ahmad at a3f.at>
---
arch/kvx/include/asm/setjmp.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/kvx/include/asm/setjmp.h b/arch/kvx/include/asm/setjmp.h
index 3cfc698d9006..3c23576e6e82 100644
--- a/arch/kvx/include/asm/setjmp.h
+++ b/arch/kvx/include/asm/setjmp.h
@@ -8,7 +8,7 @@
typedef u64 jmp_buf[22];
-int initjmp(jmp_buf jmp, void __noreturn (*func)(void), void *stack_top);
+int initjmp(jmp_buf jmp, void __attribute__((noreturn)) (*func)(void), void *stack_top);
int setjmp(jmp_buf jmp) __attribute__((returns_twice));
void longjmp(jmp_buf jmp, int ret) __attribute__((noreturn));
--
2.30.0
More information about the barebox
mailing list