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 <ade...@google.com>
> Cc: Kever Yang <kever.y...@rock-chips.com>
> Cc: Michael Walle <mich...@walle.cc>
> Cc: Simon Glass <s...@chromium.org>
> Cc: Tom Rini <tr...@konsulko.com>
> Cc: Nick Desaulniers <ndesaulni...@google.com>

Applied to u-boot/master, thanks!

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to