mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: "Peter Zijlstra" <peterz@infradead.org>,
	"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
Cc: "Thomas Gleixner" <tglx@linutronix.de>,
	"Vlastimil Babka" <vbabka@suse.cz>,
	"Breno Leitao" <leitao@debian.org>,
	"Kriish Sharma" <kriish.sharma2006@gmail.com>,
	"Ingo Molnar" <mingo@redhat.com>,
	"Juri Lelli" <juri.lelli@redhat.com>,
	"Vincent Guittot" <vincent.guittot@linaro.org>,
	"Dietmar Eggemann" <dietmar.eggemann@arm.com>,
	"Steven Rostedt" <rostedt@goodmis.org>,
	"Ben Segall" <bsegall@google.com>, "Mel Gorman" <mgorman@suse.de>,
	"Valentin Schneider" <vschneid@redhat.com>,
	linux-kernel@vger.kernel.org, david.hunter.linux@gmail.com,
	skhan@linuxfoundation.org,
	"Menglong Dong" <menglong8.dong@gmail.com>,
	"André Draszik" <andre.draszik@linaro.org>,
	"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
	"Aditya Gollamudi" <adigollamudi@gmail.com>,
	"Kevin Brodsky" <kevin.brodsky@arm.com>,
	"Dan Carpenter" <error27@gmail.com>
Subject: Re: [PATCH] sched: remove unused cpumask variable in mm_cid_get()
Date: Tue, 21 Oct 2025 22:02:05 +0200	[thread overview]
Message-ID: <ea7e6e43-c9fa-4ae0-93d9-8837ce6a6b63@linaro.org> (raw)
In-Reply-To: <20251021133018.GV3419281@noisy.programming.kicks-ass.net>

On 21/10/2025 15:30, Peter Zijlstra wrote:
>>> People using W=1 and WERROR can keep the pieces. Anyway, this is a much
>>> more coherent explanation that the original patch.
>>
>> Can we please get this fixed even though you don't bother about W=1
>> builds? There seem to be others who do. And note that even
>>
>> 	make W=1 drivers/pwm/
>>
>> is broken due to that, so it affects also maintainers who only want W=1
>> for their own subtree.
> 
> Only if you have WERROR=y, which really you shouldn't have if you use
> W>0.


That's not correct. I want my code to have zero W=1 errors and way I
achieved that is that I fixed all the warnings and now I build code I
maintain with allyesconfig (so werror) and W=1. That's way I am sure no
new warnings will slip into subsystem I maintain.

I recommend other maintainers also not to introduce W=1 errors and don't
accept patches who introduce them, even if that patch (like in this
case) just re-shuffled things and made some non important issue visible.

Why? Because we anyway do not want W=1 errors in RC release...

> 
>> Regarding the Fixes line: Vlastimil Babka bisected it to 378b7708194f
>> ("sched: Make migrate_{en,dis}able() inline"), but I think this is just
>> the commit that made the compiler notice that. IMHO Andy identified the
>> more plausible commit with:
>>
>> Fixes: 223baf9d17f2 ("sched: Fix performance regression introduced by mm_cid")
> 
> Right, as said, Thomas is rewriting all that. His first patch is a
> revert of that commit:
> 
>   https://lkml.kernel.org/r/20251015164952.694882104@linutronix.de
> 
>> Note there is a lkp report about André's patch (i.e. the first in my
>> list above) at
>> https://lore.kernel.org/all/202510041546.DvhFLp2x-lkp@intel.com/#t. I
>> don't understand the issue found there, but maybe someone should before
>> the patch is applied.
> 
> That's unrelated to the patch in question -- it is the robot
> re-reporting a smatch thing because the code changed and the new report
> no longer exactly matches the old report or something.
> 
> smatch wasn't able to discover the relation between next->mm and
> next->mm_cid_active and warns us that next->mm can be NULL (per a
> previous test for that) and that feeding said NULL into mm_cid_get() is
> a problem -- it would be, except next->mm_cid_active cannot be set if
> !next->mm.
> 
> *sigh*, it just means Thomas will have to rebase his series -- not the
> end of the world I suppose but I really don't get this obsession with
> W=1.
> 
> The problem is really that I'm now mandated to keep the scheduler W=1
> clean, and I really, as in *really* don't care for W=1. A number of

Great, so since your code is quite important and I cannot build my code
without that part, we are all stuck because you want W=0 compliance...

> warnings there are just not sane, like that ludicrous unused static
> inline warning.

That ludicrous warning could have been fixed when it hit next, because
it was not hiding from you. Building with W=1 is pretty standard thing
for new code. The truth is that that commit was applied shortly - few
days before merge window:
1. my earliest report comes from 26th of September
https://krzk.eu/#/builders/135/builds/180

2. Merge window opens Sep 28.

Two days in next, great!

> 
> But sure -- send a patch for this, with a coherent changelog. I'll be a
> bigger pain in the arse the moment the 'fix' really doesn't make sense.
> I'll probably propose removing the warnings from W=1, like here:
> 
>   https://lkml.kernel.org/r/20250813152142.GP4067720@noisy.programming.kicks-ass.net

That is fine as well. Your subsystem, your call, but unfortunately we
cannot build our stuff when yours fails.


Best regards,
Krzysztof

  reply	other threads:[~2025-10-21 20:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-09 19:48 Kriish Sharma
2025-10-14  9:56 ` Breno Leitao
2025-10-14 10:13   ` Vlastimil Babka
2025-10-14 10:34     ` Peter Zijlstra
2025-10-21 12:01       ` Uwe Kleine-König
2025-10-21 13:30         ` Peter Zijlstra
2025-10-21 20:02           ` Krzysztof Kozlowski [this message]
2025-10-14 10:31 ` Peter Zijlstra

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=ea7e6e43-c9fa-4ae0-93d9-8837ce6a6b63@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=adigollamudi@gmail.com \
    --cc=andre.draszik@linaro.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=bsegall@google.com \
    --cc=david.hunter.linux@gmail.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=error27@gmail.com \
    --cc=juri.lelli@redhat.com \
    --cc=kevin.brodsky@arm.com \
    --cc=kriish.sharma2006@gmail.com \
    --cc=leitao@debian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=menglong8.dong@gmail.com \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=skhan@linuxfoundation.org \
    --cc=tglx@linutronix.de \
    --cc=u.kleine-koenig@baylibre.com \
    --cc=vbabka@suse.cz \
    --cc=vincent.guittot@linaro.org \
    --cc=vschneid@redhat.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®