diff options
author | Alistair Delva <adelva@google.com> | 2022-09-26 20:47:55 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-10-10 18:01:23 -0400 |
commit | db9d55e2103351cfc8925aadaf5584fe84f61c9f (patch) | |
tree | ed222f4adeea81c61a6272d192870b2e219a2050 /common/spl | |
parent | 0b943587d28763db7f277ba1c168d86b4dfca288 (diff) | |
download | u-boot-db9d55e2103351cfc8925aadaf5584fe84f61c9f.tar.gz |
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 <adelva@google.com>
Cc: Kever Yang <kever.yang@rock-chips.com>
Cc: Michael Walle <michael@walle.cc>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'common/spl')
-rw-r--r-- | common/spl/spl_atf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl_atf.c b/common/spl/spl_atf.c index e1b68dd561..bae5c010c8 100644 --- a/common/spl/spl_atf.c +++ b/common/spl/spl_atf.c @@ -184,7 +184,7 @@ __weak struct bl_params *bl2_plat_get_bl31_params_v2(uintptr_t bl32_entry, static inline void raw_write_daif(unsigned int daif) { - __asm__ __volatile__("msr DAIF, %0\n\t" : : "r" (daif) : "memory"); + __asm__ __volatile__("msr DAIF, %x0\n\t" : : "r" (daif) : "memory"); } typedef void (*atf_entry_t)(struct bl31_params *params, void *plat_params); |