From: Thomas Weißschuh Date: Thu, 21 Aug 2025 13:28:12 +0000 (+0200) Subject: ALSA: hrtimer: Avoid direct access to hrtimer clockbase X-Git-Tag: v6.18-rc1~178^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=645e0644300b0dac3cf31527e93e51172455749a;p=thirdparty%2Fkernel%2Flinux.git ALSA: hrtimer: Avoid direct access to hrtimer clockbase The field timer->base->get_time is a private implementation detail and should not be accessed outside of the hrtimer core. Switch to the equivalent helper. Signed-off-by: Thomas Weißschuh Signed-off-by: Thomas Gleixner Acked-by: Peter Zijlstra (Intel) Acked-by: Takashi Iwai Link: https://lore.kernel.org/all/20250821-hrtimer-cleanup-get_time-v2-5-3ae822e5bfbd@linutronix.de --- diff --git a/sound/core/hrtimer.c b/sound/core/hrtimer.c index c364bd126ac8b..2d5f4d47071f7 100644 --- a/sound/core/hrtimer.c +++ b/sound/core/hrtimer.c @@ -44,7 +44,7 @@ static enum hrtimer_restart snd_hrtimer_callback(struct hrtimer *hrt) } /* calculate the drift */ - delta = ktime_sub(hrt->base->get_time(), hrtimer_get_expires(hrt)); + delta = ktime_sub(hrtimer_cb_get_time(hrt), hrtimer_get_expires(hrt)); if (delta > 0) ticks += ktime_divns(delta, ticks * resolution);