public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Alistair Delva <adelva@google.com>
Cc: u-boot@lists.denx.de, Kever Yang <kever.yang@rock-chips.com>,
	Michael Walle <michael@walle.cc>, Simon Glass <sjg@chromium.org>,
	Nick Desaulniers <ndesaulniers@google.com>
Subject: Re: [PATCH] spl: atf: Fix clang -Wasm-operand-widths warning
Date: Tue, 11 Oct 2022 09:56:46 -0400	[thread overview]
Message-ID: <20221011135646.GA2020586@bill-the-cat> (raw)
In-Reply-To: <20220926204755.863552-1-adelva@google.com>

[-- Attachment #1: Type: text/plain, Size: 967 bytes --]

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@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>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

      reply	other threads:[~2022-10-11 13:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-26 20:47 [PATCH] spl: atf: Fix clang -Wasm-operand-widths warning Alistair Delva
2022-10-11 13:56 ` Tom Rini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221011135646.GA2020586@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=adelva@google.com \
    --cc=kever.yang@rock-chips.com \
    --cc=michael@walle.cc \
    --cc=ndesaulniers@google.com \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox