]> Git Repo - u-boot.git/commit
spl: atf: Fix clang -Wasm-operand-widths warning
authorAlistair Delva <[email protected]>
Mon, 26 Sep 2022 20:47:55 +0000 (20:47 +0000)
committerTom Rini <[email protected]>
Mon, 10 Oct 2022 22:01:23 +0000 (18:01 -0400)
commitdb9d55e2103351cfc8925aadaf5584fe84f61c9f
treeed222f4adeea81c61a6272d192870b2e219a2050
parent0b943587d28763db7f277ba1c168d86b4dfca288
spl: atf: Fix clang -Wasm-operand-widths warning

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 <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Michael Walle <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Nick Desaulniers <[email protected]>
common/spl/spl_atf.c
This page took 0.033572 seconds and 4 git commands to generate.