Re: [PATCH v1 1/1] sched: Remove never used code in mm_cid_get()
From: Peter Zijlstra
Date: Tue Oct 21 2025 - 13:19:04 EST
On Mon, Oct 20, 2025 at 01:10:44PM +0300, Andy Shevchenko wrote:
> On Wed, Oct 15, 2025 at 11:19:34AM +0200, Andy Shevchenko wrote:
> > Clang is not happy with set but unused variable (this is visible
> > with `make W=1` build:
> >
> > kernel/sched/sched.h:3744:18: error: variable 'cpumask' set but not used [-Werror,-Wunused-but-set-variable]
> >
> > It seems like the variable was never be used along with the assignment that
> > does not have side effects as far as I can see. Remove those altogether.
>
> Anybody to apply this for fixes?
Why? W=1 and WERROR is very much you get to keep the pieces land, no?