[PATCH 0/8] <asm/setjmp.h>: Don't use __noreturn without header

Sascha Hauer sha at pengutronix.de
Wed Mar 17 10:56:05 GMT 2021


On Wed, Mar 17, 2021 at 11:46:35AM +0100, Ahmad Fatoum wrote:
> __noreturn is defined in <linux/compiler.h>, which isn't included in
> every <asm/setjmp>, so arm32 that uses setjmp outside of bthreads fails
> to build. In order to keep changes to a minimum, just replace
> __noreturn with __attribute__((noreturn))
> 
> Tested on:
> arm32, aarch64, mipsel, mips, riscv32, riscv64
> 
> Ahmad Fatoum (8):
>   fixup! ARM: asm: setjmp: implement coroutine dependency initjmp()
>   fixup! kvx: Implement setjmp/longjmp/initjmp
>   fixup! mips: Implement setjmp/longjmp/initjmp for 32BIT
>   fixup! openrisc: Implement setjmp/longjmp/initjmp
>   fixup! powerpc: Implement initjmp/setjmp/longjmp
>   fixup! riscv: Implement setjmp/longjmp/initjmp for RV32I
>   fixup! sandbox: asm: implement setjmp/longjmp/initjmp
>   fixup! x86: implement setjmp/longjmp/initjmp

Applied, thanks

Sascha

> 
>  arch/arm/include/asm/setjmp.h      | 2 +-
>  arch/kvx/include/asm/setjmp.h      | 2 +-
>  arch/mips/include/asm/setjmp.h     | 2 +-
>  arch/openrisc/include/asm/setjmp.h | 2 +-
>  arch/powerpc/include/asm/setjmp.h  | 2 +-
>  arch/riscv/include/asm/setjmp.h    | 2 +-
>  arch/sandbox/include/asm/setjmp.h  | 2 +-
>  arch/x86/include/asm/setjmp.h      | 2 +-
>  8 files changed, 8 insertions(+), 8 deletions(-)
> 
> -- 
> 2.30.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list