Re: [PATCH] cleanup: Fix unused guard error function with DEFINE_CLASS_IS_COND_GUARD

From: Linus Torvalds
Date: Wed Aug 13 2025 - 11:32:36 EST


On Wed, 13 Aug 2025 at 08:21, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> Right, so I've had patches that added extra #ifdef gunk because of this,
> and we've sprinked __maybe_unused in a few places just to shut this up.
>
> I think something like the below will do... totally untested and all
> that.

Yeah. I'm not convinced we want it even at W=2, but as mentioned, at
that point hopefully nobody really cares.

Linus