From nobody Thu Apr 2 17:15:02 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 95E1F340293 for ; Fri, 27 Mar 2026 18:06:12 +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=1774634772; cv=none; b=U5KIL4BLKfaIoPlOZiiROedIzIcmhrmfR0SrG4Z0DaBz6s95f19OmxnMNZJZaVM7ejUXNMfPrH8d9cxfaB58jeLW5oyIpkve1YaJl47Pk4YnhfBw3ut+znjuWh984P3BGlJmAtzf8fJZYUjVzUx4MIRWwdvOcNrm7xUFsWU7CFI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774634772; c=relaxed/simple; bh=m63W0gv+X0rmLX4ADUZdodixmhiFM20HW0wib0b4iYg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hDnMyaZiVRPjQZp1RVWO7mDnLW/EItLJYSVdrrrRa1aGOVkNU7cWzjUw6OUKeQGadOx1zwdARalTrHOBS1DYOYMqKdqV259Fx/QnIOk68qpb1ahVS9twUQMvcXvdbrIuaGqs5MjUPiE+ugh6OF0Se9HNIarXBz9jXJEGWkWOhmA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MLxK2LsJ; 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="MLxK2LsJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E968C19423; Fri, 27 Mar 2026 18:06:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774634772; bh=m63W0gv+X0rmLX4ADUZdodixmhiFM20HW0wib0b4iYg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MLxK2LsJdsyhCmqAyR14zyspOy1W90SM55/YrXc4M1SD2TAG1Ut1iFa4d3aHY9DF5 PdtInzO52aym1MnojBXK9iNJFYX1cIANJcHDyGh5WGfSx3uu3IkaqbV1+wOrxEYT9s 6D6l9d6JtZMutc4SjUZVKpSRZcBWeVcx03GjAq4cJI8/8WsKpE3VIOGD3hJvqVdusu omUtQpnO3/v3ikMdCNEr7kxoQg7VVRz5KhD6ZlFT5Q1+I167ZP6cBkeZGyEmPMaqxE Bk9v5IMqb97rHmmubxt8L7VVP4d3LUB00hbb7RZ64QDNeM6v1ysGp0cs2/4z6TxqQX V6KxrtWgnrN1Q== 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 resend v1 2/7] clocksource/drivers/mmio: Make the code compatible with modules Date: Fri, 27 Mar 2026 19:05:54 +0100 Message-ID: <20260327180600.8150-3-daniel.lezcano@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260327180600.8150-1-daniel.lezcano@kernel.org> References: <20260327180600.8150-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 Acked-by: John Stultz --- 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