[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c0a6f1960a39ca6cc84764614cfd8ccb0afc24f9.camel@sipsolutions.net>
Date: Thu, 04 Sep 2025 12:07:14 +0200
From: Johannes Berg <johannes@...solutions.net>
To: ChenMiao <chenmiao.ku@...il.com>, Linux Kernel
<linux-kernel@...r.kernel.org>, Linux OpenRISC
<linux-openrisc@...r.kernel.org>
Cc: Jonathan Corbet <corbet@....net>, Jonas Bonn <jonas@...thpole.se>,
Stefan Kristiansson <stefan.kristiansson@...nalahti.fi>, Stafford Horne
<shorne@...il.com>, Peter Zijlstra <peterz@...radead.org>, Josh Poimboeuf
<jpoimboe@...nel.org>, Jason Baron <jbaron@...mai.com>, Steven Rostedt
<rostedt@...dmis.org>, Ard Biesheuvel <ardb@...nel.org>, Masahiro Yamada
<masahiroy@...nel.org>, Nicolas Schier <nicolas.schier@...ux.dev>, Sahil
Siddiq <sahilcdq0@...il.com>, linux-doc@...r.kernel.org
Subject: Re: [PATCH v4 4/4] openrisc: Add jump label support
Hi,
So I'm not quite sure why I'm CC'ed, nor do I really care much, but
since I was idly reading through it anyway ...
> + if (unlikely(offset < -134217728 || offset > 134217724)) {
> + WARN_ON_ONCE(true);
> + }
Seems like that should just be
WARN_ON_ONCE(offset < -134217728 || offset > 134217724);
since the unlikely is in there already.
> + if (early_boot_irqs_disabled) {
> + copy_to_kernel_nofault(addr, &insn, sizeof(insn));
> + } else {
> + patch_insn_write(addr, insn);
> + }
(and maybe that doesn't need braces)
johannes
Powered by blists - more mailing lists