Re: [PATCH] irqflags: explicitly ignore lockdep_hrtimer_exit() argument

From: Sebastian Andrzej Siewior
Date: Fri Mar 22 2024 - 11:50:21 EST


On 2024-03-22 14:20:41 [+0100], Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> When building with 'make W=1' but CONFIG_TRACE_IRQFLAGS=n, the
> unused argument to lockdep_hrtimer_exit() causes a warning:
>
> kernel/time/hrtimer.c:1655:14: error: variable 'expires_in_hardirq' set but not used [-Werror=unused-but-set-variable]
>
> This is intentional behavior, so add a cast to void to shut up the warning.
>
> Fixes: 73d20564e0dc ("hrtimer: Don't dereference the hrtimer pointer after the callback")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Hmm. Seems I forgot about it
https://lore.kernel.org/all/20231120153953.kGBSHe5j@xxxxxxxxxxxxx/

Maybe we could the commit message from the referenced patch. Either way,
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>

Sebastian