From nobody Sun Feb 8 14:06:55 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 B6B43220680; Fri, 4 Apr 2025 17:34: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=1743788056; cv=none; b=L20g+boskfXHi+4jIysZOVz86zpjgODgHk7iynx75TI8sx/GPIoN297looBkk0aVS1SqEeQyhbeokidhK/wMdV9MeavEbM35AQVV1PoglGMDEzOee1pyzMbQ7lFgJkrOj1+bMsME2J+9W8uBQU9VAr+wljEvYud8Rx7oSWHTuws= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743788056; c=relaxed/simple; bh=qrBsi97fAe+1NWNKhhGcXgIDF3gvfTGhaFk2QU279t8=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=ehqewUIWObNBvIqTfx7jSY9QWYPYgmyBiaSW2mvWKxUI3W89CRU2fVOa8Iz3n3Z8HAwhvHO3THiXGqrQR5sOzLuYJC7vnZGEZxu2PR0WbFUqLhAu2Dk9ChfS4vw4iwsGUB1nzxbcFDN4lLwefAjVU28Nt8zSTZIcn7p0ZutRVyo= 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=ZAyxyHdo; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=rhOLoivh; 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="ZAyxyHdo"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="rhOLoivh" Date: Fri, 04 Apr 2025 17:34:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1743788053; 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=qfjF/0thM6KO72mA5os9dDvYzSbm7YMzDl3dLhCKJBc=; b=ZAyxyHdoeDYhTtgc/hA39oLYT9r1dRVOupheUOhGJnKwT+L+Fa6AZfRWII7Fq8s8VDrlCT 2By01csLNSadIxKNzkKgeEnz4UwqA8srIwEf7L4iwjlZViA/Uogv0Uoeau+jnlU0yGRE8V qmXO4OeikfXctA72TKsUvGEAPGHzjl4ZRr2Lb+uRNFvIZfKEDF0nmMPnOawTPO5E7wSy6e gWo0CZ7nxnPWxvyZB30mhn2RJNv89YamGBi86XsFrp150roPFBVY4vErXBA6+Yd7KzGBDi Hi4XGmPMDgexeRymiunwPusoI6o63nvS2YmfWD32mG1TPjCYSsIaKqxKgqR8/w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1743788053; 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=qfjF/0thM6KO72mA5os9dDvYzSbm7YMzDl3dLhCKJBc=; b=rhOLoivh7xadfNF5zVG74BH7AwcGI+JYy6BQqtC0FIbbIQnX1VKOjDIjGHovWAamEwdTbO a0LQ2l2RLjV6uyCw== 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: <174378805268.31282.3607008331073971138.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: 56db541ad3092640879a892fe04ab3125f781626 Gitweb: https://git.kernel.org/tip/56db541ad3092640879a892fe04ab3125= f781626 Author: Nam Cao AuthorDate: Wed, 05 Feb 2025 11:55:10 +01:00 Committer: Thomas Gleixner CommitterDate: Fri, 04 Apr 2025 19:26:43 +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