From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796002168; b=onS2FhHPCMHRqzod8KQuDYC635FeJT36ePX0WuQpwaot/saHRJgnc3ZAhAV4DzmyTCXJ aPGZ30E/c/hqoSX6F04+kJgMIUUYCPaszixBWJo1TWkIqnIF5DRvcZPFHyfWw8r2iB9l/ vdMM7ai6lkdKXiKWOyW98Qz6VAywWtrqrx7wjSdOb1/sBGTqHGQPMiNWxhz3w2HsCotae OKKADRvQMrLPx4Q6b/i4LQtOvXd0llct5mxh1BrQZ/RhpyaNjvNpIWgk33C5K445dwGO/ XWkbDXSI/HTZoxCgb2xwqEmOsUNtKM2qY99uXG3TDos8cUdQfFMo1d4cSKecwumB3zg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796002168; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Transfer-Encoding; bh=45tYfNU5L2c61+VDuCQj1oBKHzKSQx02FGC5ybdN4uE=; b=vEZOqLWIcHEVaPNyTQT+uudDqQ35Kvqm80pb/PQ+6cJ+pFLrEZRk3Ec6tUtPNPe0NQvj 2oCRR4x2IY/G2X3adAko3tRTwxBOIMMZzjMoGYHou/SwcK+sz3AGadt1B8pUkoWw2UWCi 5bBzJA9F4coJPq2qoF4FqA7nqqclvCrRCzJeq2PHSEaoeymbt9rISzZsky7M+4VYq03w6 hcqg7D8GpfVd6cIWdDc+BYDpnrqO/zAE59Isz1UTmoiQrbeEfBe+aRQZGafYrZjBqWQOl 8YeYNK8lEXRwlJYQJ/0zMQWqyHA7CXli2IoSbqkgrRCQahUg+PvS3EDuULwt31gZOjQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IoM0arai; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 075A6606A32A for ; Mon, 30 Nov 2026 01:29:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IoM0arai Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2FA21F00898; Mon, 30 Nov 2026 01:29:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796002167; bh=45tYfNU5L2c61+VDuCQj1oBKHzKSQx02FGC5ybdN4uE=; h=From:To:Cc:Subject:Date; b=IoM0araiCy/NRlXp/YYJizzfXdwYn2mC0HqUUOkV322QE954yvxvxRuD50T28uUi/ DWnXD8tqoCbfd4JutTPFuKpIbdUaDnSCBKpUwrMu2pkp50vctJ8h952GU7WhBDDuCf DpYPJATpKARa3NtGqLY5EWJgxI0TJTx+lPGrtQtH2Jwe0oZ/VUsYzrDXojWhvhrz+d 4xeD7/aQrXpc6VLOmmssY8mG3uN7oz1mlxz5S00QpEzlLDO91RJqdlGdZAgSeMzQpg YbzErKogk/NpWtjUCmedNDduWn9PyV5qKuSswnC6CxG0fWPutT5efi/cX09DKpptyM DcHd0yKFPKT/Q== From: Sasha Levin To: Will Deacon , Marc Zyngier Cc: Catalin Marinas , Mark Rutland , Daniel Lezcano , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] clocksource/drivers/arm_arch_timer: Make the read_sched_clock_is_arch_counter() stub inline Date: Sun, 29 Nov 2026 20:29:25 -0500 Message-ID: <20261130012925.921019-1-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The !CONFIG_ARM_ARCH_TIMER stub of read_sched_clock_is_arch_counter() is a plain static function in a header. A file that includes without the arch timer enabled and does not call it gets an unused function, which breaks x86_64 allmodconfig (COMPILE_TEST builds of rpmh-rsc.c and qcom_stats.c with CONFIG_WERROR): In file included from drivers/soc/qcom/rpmh-rsc.c:30: include/clocksource/arm_arch_timer.h:113:13: error: 'read_sched_clock_is_arch_counter' defined but not used [-Werror=unused-function] Make the stub static inline, like the other stubs around it. Fixes: 71c11e8be95d ("clocksource/drivers/arm_arch_timer: Add read_sched_clock_is_arch_counter() predicate") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/20261127235920.1xBAAn8s-lkp@intel.com/ Signed-off-by: Sasha Levin --- Built drivers/soc/qcom/rpmh-rsc.o and qcom_stats.o with x86_64 allmodconfig (gcc 16) on top of arm64 for-next/perf: both fail before, both build after. include/clocksource/arm_arch_timer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/clocksource/arm_arch_timer.h b/include/clocksource/arm_arch_timer.h index 84cdbaffcfb5e..f74e0d4d913e4 100644 --- a/include/clocksource/arm_arch_timer.h +++ b/include/clocksource/arm_arch_timer.h @@ -110,7 +110,7 @@ static inline bool arch_timer_evtstrm_available(void) return false; } -static bool read_sched_clock_is_arch_counter(const struct clock_read_data *crd) +static inline bool read_sched_clock_is_arch_counter(const struct clock_read_data *crd) { return false; } base-commit: caee2c799f896b49f5247db3b2c4bf3926b0738a -- 2.53.0