From nobody Sun Oct 5 00:12:02 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E68752E3AEF; Tue, 12 Aug 2025 06:08:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754978897; cv=none; b=IQER4fMlw+NgEqmpn4EbBMl29WKmZswJ7LKTk/cDzo74aGluAv97ow2mRtD8nmofoa0++enBJkwphyFo0cKPvXrQ5Y4Mr93XikC9H3XA9ifXYvz0dkzqY9hx6lZmeQG6cblLq2iIQ0oiPIKJFj9hIy+1rbwrVOn4Eg0kx5ZlZ0Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754978897; c=relaxed/simple; bh=VRKYPUCHOj1o3uk7vZH1eLfdSiAOjbVhE6hy3N92Zj4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mWEi+iQX8lfo0xmz36541u9UYyqBaLANIeFXFfX7lly+/9MxIomNucrj6mSWWi7e5e+lxwuVmtCEUt5Dx5voleYJJ7hm7/6DvOzWGA3HrWUtagiOCUO8DJ05xxrLuBN0CjqdxBuLyVnhTZVT+mqdPgI9E26vy+LArhWa9RQr+Oo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=h1kB2Xb2; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=UIqmkJHJ; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="h1kB2Xb2"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="UIqmkJHJ" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1754978893; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Kqr8kmeS74BlHeqTh196jDqSmuVvZJCQ2K9/zwMU41s=; b=h1kB2Xb2sT7mvI9FV2ADPzUp3mHBJyq2UXQtySsENZHSrfcEEa2oMalCnIucFOaM0UmEMl bB3g9MgYjEE49gmQbrGG6e+uzLI2vne8te4YX5CJTctTJy1J/5dIeOkN2ezYv+tU03XyNL eWLG6m+a5TqzJ0f168SqNFZJRUajZTB+t2J5CC6YBxIXfOvI7kJQlT5wIq1EVyv6t8i2Ud +UEXOFXc8w4hNBaSh+ZDH+mDNTqF710Wh0LPE/VwiCz0dAjS+JtVDsJlGJgx2F03bkvYeu I9jqb6jy9oe5/RT857Q5PoM0P/SWLUldzHT3O/YzasNnTpQ6YDP5vsuIA0IHJQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1754978893; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Kqr8kmeS74BlHeqTh196jDqSmuVvZJCQ2K9/zwMU41s=; b=UIqmkJHJChJKem0Pz0rGOMgQXFUIt6+3ZFPETIuHK8ATovWs2eBOPLGLXC/zJkJEfkMw4/ rrP+0SzS56/S/tAg== Date: Tue, 12 Aug 2025 08:08:13 +0200 Subject: [PATCH 5/8] ALSA: hrtimer: Avoid direct access to hrtimer clockbase Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250812-hrtimer-cleanup-get_time-v1-5-b962cd9d9385@linutronix.de> References: <20250812-hrtimer-cleanup-get_time-v1-0-b962cd9d9385@linutronix.de> In-Reply-To: <20250812-hrtimer-cleanup-get_time-v1-0-b962cd9d9385@linutronix.de> To: Anna-Maria Behnsen , Frederic Weisbecker , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , Matt Wu , Andrew Morton , Jaroslav Kysela , Takashi Iwai , Sean Young , Mauro Carvalho Chehab , Jan Kiszka , Kieran Bingham Cc: linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, linux-media@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1754978890; l=887; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=VRKYPUCHOj1o3uk7vZH1eLfdSiAOjbVhE6hy3N92Zj4=; b=DIUjYMVo+Dk4K6NT/EE25eInyR21nhdIAp6af0VYj9qalUUh1Sib1zZEgo3By6etxDOe/EphY 26HEGkqNlIGCGfp0Ux/R/ru99EPb1DjucpNmzeaMpxAAAWM1mJSgw/9 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= 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=C3=9Fschuh Acked-by: Takashi Iwai --- sound/core/hrtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/core/hrtimer.c b/sound/core/hrtimer.c index c364bd126ac8b311e3ce899e226ff9fd82c4485f..2d5f4d47071f79d7db24c8f004f= 0f4154808fdd8 100644 --- a/sound/core/hrtimer.c +++ b/sound/core/hrtimer.c @@ -44,7 +44,7 @@ static enum hrtimer_restart snd_hrtimer_callback(struct h= rtimer *hrt) } =20 /* calculate the drift */ - delta =3D ktime_sub(hrt->base->get_time(), hrtimer_get_expires(hrt)); + delta =3D ktime_sub(hrtimer_cb_get_time(hrt), hrtimer_get_expires(hrt)); if (delta > 0) ticks +=3D ktime_divns(delta, ticks * resolution); =20 --=20 2.50.1