[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANpmjNOUr8rHmui_nPpGBzmXe4VRn=70dT7n6sWpJc6FD2qLbA@mail.gmail.com>
Date: Sat, 20 Dec 2025 13:51:30 +0100
From: Marco Elver <elver@...gle.com>
To: Bart Van Assche <bart.vanassche@...il.com>
Cc: Peter Zijlstra <peterz@...radead.org>, Boqun Feng <boqun.feng@...il.com>,
Ingo Molnar <mingo@...nel.org>, Will Deacon <will@...nel.org>,
"David S. Miller" <davem@...emloft.net>, Luc Van Oostenryck <luc.vanoostenryck@...il.com>,
Chris Li <sparse@...isli.org>, "Paul E. McKenney" <paulmck@...nel.org>,
Alexander Potapenko <glider@...gle.com>, Arnd Bergmann <arnd@...db.de>, Christoph Hellwig <hch@....de>,
Dmitry Vyukov <dvyukov@...gle.com>, Eric Dumazet <edumazet@...gle.com>,
Frederic Weisbecker <frederic@...nel.org>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Herbert Xu <herbert@...dor.apana.org.au>, Ian Rogers <irogers@...gle.com>,
Jann Horn <jannh@...gle.com>, Joel Fernandes <joelagnelf@...dia.com>,
Johannes Berg <johannes.berg@...el.com>, Jonathan Corbet <corbet@....net>,
Josh Triplett <josh@...htriplett.org>, Justin Stitt <justinstitt@...gle.com>,
Kees Cook <kees@...nel.org>, Kentaro Takeda <takedakn@...data.co.jp>,
Lukas Bulwahn <lukas.bulwahn@...il.com>, Mark Rutland <mark.rutland@....com>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>, Miguel Ojeda <ojeda@...nel.org>,
Nathan Chancellor <nathan@...nel.org>, Neeraj Upadhyay <neeraj.upadhyay@...nel.org>,
Nick Desaulniers <nick.desaulniers+lkml@...il.com>, Steven Rostedt <rostedt@...dmis.org>,
Tetsuo Handa <penguin-kernel@...ove.sakura.ne.jp>, Thomas Gleixner <tglx@...utronix.de>,
Thomas Graf <tgraf@...g.ch>, Uladzislau Rezki <urezki@...il.com>, Waiman Long <longman@...hat.com>,
kasan-dev@...glegroups.com, linux-crypto@...r.kernel.org,
linux-doc@...r.kernel.org, linux-kbuild@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-mm@...ck.org,
linux-security-module@...r.kernel.org, linux-sparse@...r.kernel.org,
linux-wireless@...r.kernel.org, llvm@...ts.linux.dev, rcu@...r.kernel.org
Subject: Re: [PATCH v5 24/36] compiler-context-analysis: Remove __cond_lock()
function-like helper
On Fri, 19 Dec 2025 at 22:42, Bart Van Assche <bart.vanassche@...il.com> wrote:
> On 12/19/25 8:40 AM, Marco Elver wrote:
> > Documentation/dev-tools/context-analysis.rst | 2 -
> > Documentation/mm/process_addrs.rst | 6 +-
> > .../net/wireless/intel/iwlwifi/iwl-trans.c | 4 +-
> > .../net/wireless/intel/iwlwifi/iwl-trans.h | 6 +-
> > .../intel/iwlwifi/pcie/gen1_2/internal.h | 5 +-
> > .../intel/iwlwifi/pcie/gen1_2/trans.c | 4 +-
> > include/linux/compiler-context-analysis.h | 31 ----------
> > include/linux/lockref.h | 4 +-
> > include/linux/mm.h | 33 ++--------
> > include/linux/rwlock.h | 11 +---
> > include/linux/rwlock_api_smp.h | 14 ++++-
> > include/linux/rwlock_rt.h | 21 ++++---
> > include/linux/sched/signal.h | 14 +----
> > include/linux/spinlock.h | 45 +++++---------
> > include/linux/spinlock_api_smp.h | 20 ++++++
> > include/linux/spinlock_api_up.h | 61 ++++++++++++++++---
> > include/linux/spinlock_rt.h | 26 ++++----
> > kernel/signal.c | 4 +-
> > kernel/time/posix-timers.c | 13 +---
> > lib/dec_and_lock.c | 8 +--
> > lib/lockref.c | 1 -
> > mm/memory.c | 4 +-
> > mm/pgtable-generic.c | 19 +++---
> > tools/include/linux/compiler_types.h | 2 -
>
> This patch should be split into one patch per subsystem or driver.
> E.g. one patch for the iwlwifi driver, another patch for the mm
> subsystem, one patch for the rwlock primitive, one patch for the
> spinlock primitive, etc.
>
> The tools/include/linux/compiler_types.h change probably should be
> left out because it is user space code instead of kernel code and
> the rest of the series applies to kernel code only.
AFAIK, the user space version is just a copy of the kernel version to
support headers that are used by both. See
4bba4c4bb09ad4a2b70836725e08439c86d8f9e4. The sparse annotations were
copied in ab3c0ddb0d71dc214b61d11deb8770196ef46c05.
And there's no point in keeping it around given it's all gone:
% git grep __cond_lock
<nothing>
Powered by blists - more mailing lists