From nobody Mon Jun 15 18:06:00 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 A68882DC762; Sun, 12 Apr 2026 20:39:17 +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=1776026359; cv=none; b=Nr1UWUZbRbhkh/JTimtPJMLCdqXtGdcn2nDT29MlSN1AXguojeQRfxtXtKTtGyD1kwFV27c6jQjeVzseiddnvdIqvpxpSA2vBv9Xzz1CyqnTXbp2NK0XFp8mKwNmD2uYpr9ryOQ8H90Du51s7+UcSTyG0Je/xQ4x6VCiDGFPasw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776026359; c=relaxed/simple; bh=Bd8nrORxyjVSDdrDuL+t2FvGr8Nv2ihit8f18MyhBpM=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Ran0gl7QtjkcC9F1jxdwqGKLfJFlYubxkZW67ohiAB66kFqUMY128LSYskTuvoazEOXKhLjuqEbMQGJzOZT8Ncz9MNohInl8lVJUdaZQtvN5TVOKZcQPY2B3Mnf/+H6NCO6jepqkc8xRsPS+l/I6KdA1IF1/anWWU3nsZEfymsc= 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=LY51adlo; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=YcczudzS; 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="LY51adlo"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="YcczudzS" Date: Sun, 12 Apr 2026 20:39:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1776026349; 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=RrHlE7bVu1w70oLyouHI/0hBguYtSv1QfmXmdKLKRe8=; b=LY51adloqAIhXlTsIH1oT+suk4HLkqI3rNV/hnKzWJ8VNdphU8RltPR2APs+cp01029Pxw dMx9qNwy0Vs1ZlN3jfRbL38deVs8ZSND7/wu5YWUq0hXPR31Cw7KoYpm2Hvzifxq7Vnz4z E64jDCTZtY3KWMF6BPOAiiQUNjNoz1ehUS34fVbkfFFwZh3p9LSBRiig84nrPMo8H0pujv 6SEOINCJ+uKCIpUH7KtlWyQ6DaD3CgsVNV19a7G7BfjdfL5YaKnhauTJM7ktJs4jfBTsLA mXbfv8U50DH4wK7uChhNHTDI4wgjcWQ0SQji9adXwLhTGnSxM2KAkIIaMWswzQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1776026349; 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=RrHlE7bVu1w70oLyouHI/0hBguYtSv1QfmXmdKLKRe8=; b=YcczudzSNdfGgfcM15swWCGFUcL3/1Xgp0dkMDlz27D5D8YvIgOZ0uuWPO0Ccpl4a4HCcd OS0v2aACoVfU9AAw== From: "tip-bot2 for Daniel Lezcano" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/clocksource] clocksource/drivers/timer-of: Make the code compatible with modules Cc: Daniel Lezcano , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260327180600.8150-4-daniel.lezcano@kernel.org> References: <20260327180600.8150-4-daniel.lezcano@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177602634815.1323100.12706702247588627063.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/clocksource branch of = tip: Commit-ID: 68ed094971b09ba530baf6f75cf1902df880a8d1 Gitweb: https://git.kernel.org/tip/68ed094971b09ba530baf6f75cf1902df= 880a8d1 Author: Daniel Lezcano AuthorDate: Fri, 27 Mar 2026 19:05:55 +01:00 Committer: Daniel Lezcano CommitterDate: Fri, 03 Apr 2026 10:53:29 +02:00 clocksource/drivers/timer-of: Make the code compatible with modules The next changes will bring the module support on the timer drivers. Those use the API exported by the timer-of which are not exporting their symbols. Fix that by adding EXPORT_SYMBOL_GPL(). Signed-off-by: Daniel Lezcano Link: https://patch.msgid.link/20260327180600.8150-4-daniel.lezcano@kernel.= org --- drivers/clocksource/timer-of.c | 24 +++++++++++++----------- drivers/clocksource/timer-of.h | 5 ++--- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/drivers/clocksource/timer-of.c b/drivers/clocksource/timer-of.c index 420202b..ba63433 100644 --- a/drivers/clocksource/timer-of.c +++ b/drivers/clocksource/timer-of.c @@ -19,7 +19,7 @@ * * Free the irq resource */ -static __init void timer_of_irq_exit(struct of_timer_irq *of_irq) +static void timer_of_irq_exit(struct of_timer_irq *of_irq) { struct timer_of *to =3D container_of(of_irq, struct timer_of, of_irq); =20 @@ -41,8 +41,8 @@ static __init void timer_of_irq_exit(struct of_timer_irq = *of_irq) * * Returns 0 on success, < 0 otherwise */ -static __init int timer_of_irq_init(struct device_node *np, - struct of_timer_irq *of_irq) +static int timer_of_irq_init(struct device_node *np, + struct of_timer_irq *of_irq) { int ret; struct timer_of *to =3D container_of(of_irq, struct timer_of, of_irq); @@ -82,7 +82,7 @@ static __init int timer_of_irq_init(struct device_node *n= p, * * Disables and releases the refcount on the clk */ -static __init void timer_of_clk_exit(struct of_timer_clk *of_clk) +static void timer_of_clk_exit(struct of_timer_clk *of_clk) { of_clk->rate =3D 0; clk_disable_unprepare(of_clk->clk); @@ -98,8 +98,8 @@ static __init void timer_of_clk_exit(struct of_timer_clk = *of_clk) * * Returns 0 on success, < 0 otherwise */ -static __init int timer_of_clk_init(struct device_node *np, - struct of_timer_clk *of_clk) +static int timer_of_clk_init(struct device_node *np, + struct of_timer_clk *of_clk) { int ret; =20 @@ -137,13 +137,13 @@ out_clk_put: goto out; } =20 -static __init void timer_of_base_exit(struct of_timer_base *of_base) +static void timer_of_base_exit(struct of_timer_base *of_base) { iounmap(of_base->base); } =20 -static __init int timer_of_base_init(struct device_node *np, - struct of_timer_base *of_base) +static int timer_of_base_init(struct device_node *np, + struct of_timer_base *of_base) { of_base->base =3D of_base->name ? of_io_request_and_map(np, of_base->index, of_base->name) : @@ -156,7 +156,7 @@ static __init int timer_of_base_init(struct device_node= *np, return 0; } =20 -int __init timer_of_init(struct device_node *np, struct timer_of *to) +int timer_of_init(struct device_node *np, struct timer_of *to) { int ret =3D -EINVAL; int flags =3D 0; @@ -200,6 +200,7 @@ out_fail: timer_of_base_exit(&to->of_base); return ret; } +EXPORT_SYMBOL_GPL(timer_of_init); =20 /** * timer_of_cleanup - release timer_of resources @@ -208,7 +209,7 @@ out_fail: * Release the resources that has been used in timer_of_init(). * This function should be called in init error cases */ -void __init timer_of_cleanup(struct timer_of *to) +void timer_of_cleanup(struct timer_of *to) { if (to->flags & TIMER_OF_IRQ) timer_of_irq_exit(&to->of_irq); @@ -219,3 +220,4 @@ void __init timer_of_cleanup(struct timer_of *to) if (to->flags & TIMER_OF_BASE) timer_of_base_exit(&to->of_base); } +EXPORT_SYMBOL_GPL(timer_of_cleanup); diff --git a/drivers/clocksource/timer-of.h b/drivers/clocksource/timer-of.h index 01a2c6b..74a632b 100644 --- a/drivers/clocksource/timer-of.h +++ b/drivers/clocksource/timer-of.h @@ -65,9 +65,8 @@ static inline unsigned long timer_of_period(struct timer_= of *to) return to->of_clk.period; } =20 -extern int __init timer_of_init(struct device_node *np, - struct timer_of *to); +int timer_of_init(struct device_node *np, struct timer_of *to); =20 -extern void __init timer_of_cleanup(struct timer_of *to); +void timer_of_cleanup(struct timer_of *to); =20 #endif