From nobody Sun Feb 8 12:31:52 2026 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 C6ADC1F582D; Fri, 4 Apr 2025 14:36:23 +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=1743777385; cv=none; b=nAe8hT/ekjejqMmqQ2xLD092e6IEduLAUWTYnaVwXT8CxykErNABdF+kklQjB9QIcMoejtha0T8B3ZaCuAY6VAKCEt7VAslRyk19S9PJInk9Aik2EnBRp9iFBWp3aqsexm6iTY+HqedS/9Q5/HIR+fjd8K9h7FKVg0RZpQtFT7E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743777385; c=relaxed/simple; bh=L+i/bf7Px0QktjYzwPCQcmz83ImaJtzSzYqhkJ6hv+w=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=OQsW8elA+xpnAC8mGhYudRQY7LVvBDAOMq4rH2ubTlQbgbKU8EzTlZH/k8eogRhommUJhJNYMInL/EAwVBrLs2w+wkAoh29Xxu4yGJoZlawDiFC1kJYeBCdAnN89UCqISVI0zyndpVowMFSIOoFp0UCqIMxj+F/nok/GNpYWM7Y= 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=aNfFYYEY; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=xpQw8EXQ; 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="aNfFYYEY"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="xpQw8EXQ" Date: Fri, 04 Apr 2025 14:36:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1743777382; h=from:from:sender:sender:reply-to: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=BrGrAfVAfiPIw6ijLTynFXUdczL8ePHVSRBXHsi+N2U=; b=aNfFYYEY8FK9vYTFdMY7vmt0XvCh1+TTlXjZm/Y6v0yN7xkHpTR9+EusDLd6mQJzMCmx8W jhQuoegR1rGjTdErLa5Dg+xaCG2ZAuWlNAZdBw3txiJ+2QsU+sqHXMf3wpGEH1gD8h9QAD rOyGjRF0k+YuF860HKzu0AFTR/pg9F8jMg2yCX/ANTY8hQew9/FJ/nRSvq9ElD4ag4UWb8 rmdEW74KnuDNDQ9yFtobbcnXczsEeBfMmyam8LAmO610uoFtCRcI61YWJEvr3j91ktC/ep yH93Z6oRF1x3FwcZ8T90W7yu8zegpMOkglOaMoKqwaV/paisMhVeRMXKpNOdEw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1743777382; h=from:from:sender:sender:reply-to: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=BrGrAfVAfiPIw6ijLTynFXUdczL8ePHVSRBXHsi+N2U=; b=xpQw8EXQ0fLnuOaSL5s6rp4Aqx5j1XM6MnvEN+3agwrhNYRZHvGBMJR4zJ3v/EbDjlQROo IgoM8w/H5AK9AkBQ== From: "tip-bot2 for Nam Cao" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/cleanups] hrtimers: Delete hrtimer_init() Cc: Nam Cao , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: =?utf-8?q?=3C003722f60c7a2a4f8d4ed24fb741aa313b7e5136=2E17387?= =?utf-8?q?46927=2Egit=2Enamcao=40linutronix=2Ede=3E?= References: =?utf-8?q?=3C003722f60c7a2a4f8d4ed24fb741aa313b7e5136=2E173874?= =?utf-8?q?6927=2Egit=2Enamcao=40linutronix=2Ede=3E?= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <174377738126.31282.1669650162319092268.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the timers/cleanups branch of tip: Commit-ID: 58b3f2cce01bb48b6f6e0c1cdca5e5a2fc0c56ad Gitweb: https://git.kernel.org/tip/58b3f2cce01bb48b6f6e0c1cdca5e5a2f= c0c56ad Author: Nam Cao AuthorDate: Wed, 05 Feb 2025 11:55:10 +01:00 Committer: Thomas Gleixner CommitterDate: Fri, 04 Apr 2025 16:26:09 +02:00 hrtimers: Delete hrtimer_init() hrtimer_init() is unused. Delete it. Signed-off-by: Nam Cao Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/all/003722f60c7a2a4f8d4ed24fb741aa313b7e5136.= 1738746927.git.namcao@linutronix.de --- include/linux/hrtimer.h | 2 -- include/linux/hrtimer_types.h | 2 +- kernel/time/hrtimer.c | 20 -------------------- 3 files changed, 1 insertion(+), 23 deletions(-) diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index 88e0788..1adcba3 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h @@ -231,8 +231,6 @@ static inline enum hrtimer_restart hrtimer_dummy_timeou= t(struct hrtimer *unused) /* Exported timer functions: */ =20 /* Initialize timers: */ -extern void hrtimer_init(struct hrtimer *timer, clockid_t which_clock, - enum hrtimer_mode mode); extern void hrtimer_setup(struct hrtimer *timer, enum hrtimer_restart (*fu= nction)(struct hrtimer *), clockid_t clock_id, enum hrtimer_mode mode); extern void hrtimer_setup_on_stack(struct hrtimer *timer, diff --git a/include/linux/hrtimer_types.h b/include/linux/hrtimer_types.h index ad66a30..7c5b27d 100644 --- a/include/linux/hrtimer_types.h +++ b/include/linux/hrtimer_types.h @@ -34,7 +34,7 @@ enum hrtimer_restart { * @is_hard: Set if hrtimer will be expired in hard interrupt context * even on RT. * - * The hrtimer structure must be initialized by hrtimer_init() + * The hrtimer structure must be initialized by hrtimer_setup() */ struct hrtimer { struct timerqueue_node node; diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index 0cf8d39..b7555ba 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -1641,26 +1641,6 @@ static void __hrtimer_setup(struct hrtimer *timer, } =20 /** - * hrtimer_init - initialize a timer to the given clock - * @timer: the timer to be initialized - * @clock_id: the clock to be used - * @mode: The modes which are relevant for initialization: - * HRTIMER_MODE_ABS, HRTIMER_MODE_REL, HRTIMER_MODE_ABS_SOFT, - * HRTIMER_MODE_REL_SOFT - * - * The PINNED variants of the above can be handed in, - * but the PINNED bit is ignored as pinning happens - * when the hrtimer is started - */ -void hrtimer_init(struct hrtimer *timer, clockid_t clock_id, - enum hrtimer_mode mode) -{ - debug_init(timer, clock_id, mode); - __hrtimer_init(timer, clock_id, mode); -} -EXPORT_SYMBOL_GPL(hrtimer_init); - -/** * hrtimer_setup - initialize a timer to the given clock * @timer: the timer to be initialized * @function: the callback function