Re: [PATCH 05/21] can: bcm: Don't initialized an unused hrtimer
From: Thomas Gleixner
Date: Wed Oct 30 2024 - 11:25:05 EST
On Wed, Oct 30 2024 at 16:01, Oliver Hartkopp wrote:
> Just an additional idea:
>
> Would it probably make sense to create a generic dummy function for all
> those cases like in the referenced rt2x00 driver?
>
> E.g. as (inline?) function in hrtimer.h
>
> enum hrtimer_restart hrtimer_nop_callback(struct hrtimer *timer)
> {
> return HRTIMER_NORESTART;
> }
Yes.