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 9BC773FF89A for ; Fri, 27 Mar 2026 17:55:57 +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=1774634157; cv=none; b=EZ8XC1LxAiRXHImiZRoR1ktO8Qv/qTdvinqGRQ1Q8aVKVIeicJTqVBHy4BDbPIZr0Fk9wEtYR8RoIAJGYn1bY6hflDWiac10f+dVBtqWA3PYhSqfrMMfURnsWTFm5KArNLSgOCoTEHPKsbOYkHbyaeCRe2YrISnsbLYF5LwidrQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774634157; c=relaxed/simple; bh=m63W0gv+X0rmLX4ADUZdodixmhiFM20HW0wib0b4iYg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jVFX6e34uc2EB6IXjhZVCaMS7dZLquqPfbUq6i/sxXmATHfls8QPGvN+CGR2eWknq88zKdIPOAmKhH7Dv43XTQUFFJucl2ZgOHNh/I1hWUCddPQayCMgRDme/5EgYSLHi8s2ox7I5QWH8dUmv7vHp7Epuy62WGmG+57TwkHvUCs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YIMDgRAd; 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="YIMDgRAd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C0DDC19423; Fri, 27 Mar 2026 17:55:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774634157; bh=m63W0gv+X0rmLX4ADUZdodixmhiFM20HW0wib0b4iYg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YIMDgRAdtolmgCzvMmSISOy7L0yCu4a00GSpSZVKZEMWt37he6aoT1wO0TT6rlGSz 1QhsJeKu99EyQhTle6q7pRtI4+3oIxM3GCp+ldWHx7XN8IuDt4AQrLYR8qOf+gXn7t uNw6z1Q6AMPBrtk+dEO+uVBSTmBEinXbRUpDYvVdI63Zj4Wdvu1odX/cTfx63Gkkno s37RK2hzZygqYnuyPpPDKrWkCKLI8LLz2LclwgVlLNr7ShcP6MaDhtMp5ymuHXqw0L on2PLIzjCREGWVT94uPqiLDJfWIIJxCU+nO+4dIEA7S8SE4Sc7hUcvulCAAgH8OgW/ mTqkeqNGaqJUg== 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 2/7] clocksource/drivers/mmio: Make the code compatible with modules Date: Fri, 27 Mar 2026 18:55:23 +0100 Message-ID: <20260327175533.3044-3-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