From nobody Thu Apr 2 17:10:00 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B08383FEB27 for ; Fri, 27 Mar 2026 17:56:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774634161; cv=none; b=hc+iz8y04L6J4MU2STvzEaEb8/iBZl2ME4r4j9/3MoiWoqyXJK5LVT3y0SvxaHdBdD0fFYvT3rL7E88wIHSjpfx95SCXffXarH0OgrVhek6KpkLY1OSPdJIoqiBsJVhGAPo3qAxgozg6eOWOXcLekG/cwXoQgdjw8l9WfSd+vSM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774634161; c=relaxed/simple; bh=m63W0gv+X0rmLX4ADUZdodixmhiFM20HW0wib0b4iYg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iPx6eL2HJd3pSQlLeetSh9YmOrba+hU7EPzvGFD+QQJd6lL8Ky/RzhWVpgjT3oOp60Fr1JtIpx9flXIgAtMBIT3L06EzM5l0yB62ve/VubTIe3CEWq44dpVB8o21KkzqncNvjGpr8TWfEiXRTnofJEIpw6PPH0hxtXn9LjP+vCo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ivgkJGlJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ivgkJGlJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21F1DC19424; Fri, 27 Mar 2026 17:55:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774634161; bh=m63W0gv+X0rmLX4ADUZdodixmhiFM20HW0wib0b4iYg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ivgkJGlJ7UzHqXzx9CWwk5IhcyAlzyVXXyMYBNgA5k2txkES240XK/aIru42lPJv9 RHTv27/MIiluuNSRn4+VoY0CgaHLsmd4wyvNcIZTyuS/ZuknujQ3iZo/q4OjPxzqW7 mFaN0Duvff3AN775EmqWw6K21OQ2pfXDpB4Ica5d7MiLzrvy8Usf2fHEamV2zKlLxT wLF2SHWc7MSlHsnuQCYVNmr4XnVyNRT/7GvHfzOq3W7JEN7yn9m/IYuSO0Bmv6r2dA bZBq+T6Y6Ysm4XEEwtuIC7c2mI3Cd54HX9gjLk06FeYXACFwHi1+AIWLhAY+WkZ2zr 2YMNAj+YogQhw== From: Daniel Lezcano To: daniel.lezcano@kernel.org, tglx@kernel.org, zhipeng.wang_1@nxp.com Cc: shawnguo@kernel.org, jstultz@google.com, linux-kernel@vger.kernel.org Subject: [PATCH v1 3/7] clocksource/drivers/mmio: Make the code compatible with modules Date: Fri, 27 Mar 2026 18:55:25 +0100 Message-ID: <20260327175533.3044-5-daniel.lezcano@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260327175533.3044-1-daniel.lezcano@kernel.org> References: <20260327175533.3044-1-daniel.lezcano@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The next changes will bring the module support on the timer drivers. Those use the API exported by the mmio clocksource which are not exporting their symbols. Fix that by adding EXPORT_SYMBOL_GPL(). Signed-off-by: Daniel Lezcano --- drivers/clocksource/mmio.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/clocksource/mmio.c b/drivers/clocksource/mmio.c index cd5fbf49ac29..0fee8edb837a 100644 --- a/drivers/clocksource/mmio.c +++ b/drivers/clocksource/mmio.c @@ -21,21 +21,25 @@ u64 clocksource_mmio_readl_up(struct clocksource *c) { return (u64)readl_relaxed(to_mmio_clksrc(c)->reg); } +EXPORT_SYMBOL_GPL(clocksource_mmio_readl_up); =20 u64 clocksource_mmio_readl_down(struct clocksource *c) { return ~(u64)readl_relaxed(to_mmio_clksrc(c)->reg) & c->mask; } +EXPORT_SYMBOL_GPL(clocksource_mmio_readl_down); =20 u64 clocksource_mmio_readw_up(struct clocksource *c) { return (u64)readw_relaxed(to_mmio_clksrc(c)->reg); } +EXPORT_SYMBOL_GPL(clocksource_mmio_readw_up); =20 u64 clocksource_mmio_readw_down(struct clocksource *c) { return ~(u64)readw_relaxed(to_mmio_clksrc(c)->reg) & c->mask; } +EXPORT_SYMBOL_GPL(clocksource_mmio_readw_down); =20 /** * clocksource_mmio_init - Initialize a simple mmio based clocksource @@ -46,9 +50,9 @@ u64 clocksource_mmio_readw_down(struct clocksource *c) * @bits: Number of valid bits * @read: One of clocksource_mmio_read*() above */ -int __init clocksource_mmio_init(void __iomem *base, const char *name, - unsigned long hz, int rating, unsigned bits, - u64 (*read)(struct clocksource *)) +int clocksource_mmio_init(void __iomem *base, const char *name, + unsigned long hz, int rating, unsigned bits, + u64 (*read)(struct clocksource *)) { struct clocksource_mmio *cs; =20 @@ -68,3 +72,4 @@ int __init clocksource_mmio_init(void __iomem *base, cons= t char *name, =20 return clocksource_register_hz(&cs->clksrc, hz); } +EXPORT_SYMBOL_GPL(clocksource_mmio_init); --=20 2.43.0