mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Walmsley <pjw@kernel.org>
To: Arnd Bergmann <arnd@kernel.org>
Cc: Paul Walmsley <pjw@kernel.org>,
	Palmer Dabbelt <palmer@dabbelt.com>,
	 Albert Ou <aou@eecs.berkeley.edu>,
	 Samuel Holland <samuel.holland@sifive.com>,
	 Nathan Chancellor <nathan@kernel.org>,
	Arnd Bergmann <arnd@arndb.de>,  Alexandre Ghiti <alex@ghiti.fr>,
	 Nick Desaulniers <ndesaulniers@google.com>,
	 Bill Wendling <morbo@google.com>,
	Justin Stitt <justinstitt@google.com>,
	 Jonathan Cameron <Jonathan.Cameron@huawei.com>,
	 Aleksandar Rikalo <arikalo@gmail.com>,
	 Djordje Todorovic <djordje.todorovic@htecgroup.com>,
	 Conor Dooley <conor.dooley@microchip.com>,
	Nam Cao <namcao@linutronix.de>,  Jia Wang <wangjia@ultrarisc.com>,
	 Pinkesh Vaghela <pinkesh.vaghela@einfochips.com>,
	 Drew Fustini <dfustini@oss.tenstorrent.com>,
	 Junhui Liu <junhui.liu@pigmoral.tech>,
	linux-riscv@lists.infradead.org,  linux-kernel@vger.kernel.org,
	llvm@lists.linux.dev
Subject: Re: [PATCH] riscv: limit sifive errata to CONFIG_64BIT
Date: Fri, 18 Sep 2026 18:47:37 -0600 (MDT)	[thread overview]
Message-ID: <3f809812-03d4-92c0-0f96-db76d8d909b0@kernel.org> (raw)
In-Reply-To: <20260916083752.47310-1-arnd@kernel.org>

On Wed, 16 Sep 2026, Arnd Bergmann wrote:

> From: Arnd Bergmann <arnd@arndb.de>
> 
> There are two errata for this vendor, and they both individually depend on
> CONFIG_64BIT already. However, an 32-bit allmodconfig produces this warning
> from clang for a condition that can never be true.
> 
> arch/riscv/errata/sifive/errata.c:29:14: error: result of comparison of constant 9223372036854775815 with expression of type 'unsigned long' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
>    29 |         if (arch_id != 0x8000000000000007 ||
>       |             ~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~
> arch/riscv/errata/sifive/errata.c:42:14: error: result of comparison of constant 9223372036854775815 with expression of type 'unsigned long' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
>    42 |         if (arch_id != 0x8000000000000007 && arch_id != 0x1)
>       |             ~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>


Thanks, queued for v7.3-rc.


- Paul


      reply	other threads:[~2026-09-19  0:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-16  8:37 Arnd Bergmann
2026-09-19  0:47 ` Paul Walmsley [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=3f809812-03d4-92c0-0f96-db76d8d909b0@kernel.org \
    --to=pjw@kernel.org \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=alex@ghiti.fr \
    --cc=aou@eecs.berkeley.edu \
    --cc=arikalo@gmail.com \
    --cc=arnd@arndb.de \
    --cc=arnd@kernel.org \
    --cc=conor.dooley@microchip.com \
    --cc=dfustini@oss.tenstorrent.com \
    --cc=djordje.todorovic@htecgroup.com \
    --cc=junhui.liu@pigmoral.tech \
    --cc=justinstitt@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=llvm@lists.linux.dev \
    --cc=morbo@google.com \
    --cc=namcao@linutronix.de \
    --cc=nathan@kernel.org \
    --cc=ndesaulniers@google.com \
    --cc=palmer@dabbelt.com \
    --cc=pinkesh.vaghela@einfochips.com \
    --cc=samuel.holland@sifive.com \
    --cc=wangjia@ultrarisc.com \
    /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

all inboxes | Powered by JetHome®