From mboxrd@z Thu Jan 1 00:00:00 1970 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 868CA4B8DF8 for ; Thu, 2 Jul 2026 09:42:14 +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=1782985335; cv=none; b=RmtmR65BFWhK/U6Sa7WnB1Io3p+si4P8xf3xQU1HE+QlSNVZoh+HjLR8nnfMI4nBTpi+0GlVEx1U77fDA/avhwavWXVs3FaU/DXqCaUSiSlKqLzGd0Lg/f2wlZN+61yoYOEMez25PjkeR81YiKkRsHxqQ3IBD9szzf02xLLFnSc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782985335; c=relaxed/simple; bh=32isFfn/VsShBU89muTHiVuC3j1ImnucPV5Hc/TNBGw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=o2hiEDYATblFNo7MyeykiCRiHFYV5iinYwb3l+4NoNbNHX6n2c1ypyW4O8ZSUZEtqMhH6+EpX36zUvlGRIFB8VBOXkIRY9cEyk6Kv8Te7bhZoiGDfDnl/3UUTPPDShc8Zr528jOZ7+jWhbITG+FN1XAyExYtwvn2+5W0wJyVIDA= 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=pgLhhnq1; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=o9Y0Tl2S; 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="pgLhhnq1"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="o9Y0Tl2S" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh_=28Schneider_Electric=29?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1782985333; 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=JYvMg4fmv+pwqjSx+xBK/rEP0vVhBt+iYBwe5N7liYo=; b=pgLhhnq1OXMviCoH/2/N+3RwViKm4gymNKIVuR55W8syF9IbOOXaObXVOwmUn9YvTkmAiU Vgc9ICU8DmdEWAbrYz/Mf/iOLybadKVP6GvqJ7FhaZ7DWl3AnZ5C66Bkwtr7zTksRJOj45 bBoRLMR63CglX8SiUIuOJas0look+qzqbNsEjlvWHWaxBGp+sJF9abGcW4RJvKvXt5IuxQ Rb/FcWKi57LUeCr1Kn3CHSFCOp9mz4Ghkyw/SSCyf+4OXSB+R0vXFllAKVPz5ZgEhDDwFh lFSaGZUN0aC3ms4HwsItxyuRbtKwwrUEbzTBbeQejXt0kT9Q9+Y8PCT97uhWvA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1782985333; 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=JYvMg4fmv+pwqjSx+xBK/rEP0vVhBt+iYBwe5N7liYo=; b=o9Y0Tl2SHy0etG3zjKspzxzfkiiEgSoEUxJMAlK19LUim0sXVAiNFsuGVENgASfuIJzex/ zzAVUas+iowLrPAg== Date: Thu, 02 Jul 2026 11:41:59 +0200 Subject: [PATCH 2/8] hrtimer: Move hrtimer_callback_running() to hrtimer_bases.h 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: 8bit Message-Id: <20260702-hrtimer-header-dependencies-v1-2-c50b19bda473@linutronix.de> References: <20260702-hrtimer-header-dependencies-v1-0-c50b19bda473@linutronix.de> In-Reply-To: <20260702-hrtimer-header-dependencies-v1-0-c50b19bda473@linutronix.de> To: Anna-Maria Behnsen , Frederic Weisbecker , Thomas Gleixner Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh_=28Schneider_Electric=29?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1782985330; l=2711; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=32isFfn/VsShBU89muTHiVuC3j1ImnucPV5Hc/TNBGw=; b=ypTth5DxZL1ZvX0pmO4yy1l0JMotbNgO7/wdmWnCvSFUkieVr9movNpfGI/nnQWxnJN19PllX R8hhbWiRt6UBA4DoJHJHa8vMb0Yxhm9uCuPzedDHem4FRn9b588Kxwg X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The usage of the hrtimer base introduces a dependency on the timer base structure definitions from the widely-used hrtimer.h. Move the helper to hrtimer_bases.h to trim this dependency. Also adapt the two only callers to now include hrtimer_bases.h. Signed-off-by: Thomas Weißschuh (Schneider Electric) --- include/linux/hrtimer.h | 9 --------- include/linux/hrtimer_bases.h | 10 ++++++++++ kernel/sched/fair.c | 2 ++ sound/drivers/dummy.c | 1 + 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index 8aa58520a816..7bf154cf3079 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h @@ -287,15 +287,6 @@ static inline bool hrtimer_is_queued(struct hrtimer *timer) return READ_ONCE(timer->is_queued); } -/* - * Helper function to check, whether the timer is running the callback - * function - */ -static inline int hrtimer_callback_running(struct hrtimer *timer) -{ - return timer->base->running == timer; -} - /** * hrtimer_update_function - Update the timer's callback function * @timer: Timer to update diff --git a/include/linux/hrtimer_bases.h b/include/linux/hrtimer_bases.h index 8c10f45dc469..70b99e651168 100644 --- a/include/linux/hrtimer_bases.h +++ b/include/linux/hrtimer_bases.h @@ -2,6 +2,7 @@ #ifndef _LINUX_HRTIMER_BASES_H #define _LINUX_HRTIMER_BASES_H +#include #include #include #include @@ -110,4 +111,13 @@ struct hrtimer_cpu_base { } ____cacheline_aligned; +/* + * Helper function to check, whether the timer is running the callback + * function + */ +static inline int hrtimer_callback_running(struct hrtimer *timer) +{ + return timer->base->running == timer; +} + #endif diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index d78467ec6ee1..09197f8e4b76 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -26,6 +26,8 @@ #include #include #include +#include +#include #include #include #include diff --git a/sound/drivers/dummy.c b/sound/drivers/dummy.c index 7283f0f18813..ce7ab986dee6 100644 --- a/sound/drivers/dummy.c +++ b/sound/drivers/dummy.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include -- 2.55.0