[PATCH] spl: atf: Fix clang -Wasm-operand-widths warning

Tom Rini trini at konsulko.com
Tue Oct 11 15:56:46 CEST 2022


On Mon, Sep 26, 2022 at 08:47:55PM +0000, Alistair Delva wrote:

> common/spl/spl_atf.c:187:51: warning: value size does not match register
>   size specified by the constraint and modifier [-Wasm-operand-widths]
>     __asm__ __volatile__("msr DAIF, %0\n\t" : : "r" (daif) : "memory");
>                                                      ^
> common/spl/spl_atf.c:187:34: note: use constraint modifier "w"
>     __asm__ __volatile__("msr DAIF, %0\n\t" : : "r" (daif) : "memory");
>                                     ^~
>                                     %w0
> 
> Use %x0 to match what Linux does in <asm/sysreg.h> write_sysreg().
> 
> Signed-off-by: Alistair Delva <adelva at google.com>
> Cc: Kever Yang <kever.yang at rock-chips.com>
> Cc: Michael Walle <michael at walle.cc>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: Nick Desaulniers <ndesaulniers at google.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20221011/88c9d5f8/attachment.sig>


More information about the U-Boot mailing list