From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03FD9606A31C for ; Mon, 30 Nov 2026 01:44:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=qslpI0HP; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IoM0arai DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=45tYfNU5L2c61+VDuCQj1oBKHzKSQx02FGC5ybdN4uE=; b=qslpI0HPmlDrADE4tGrx8ZY2hR aghfUISCQ+6Ulk1Gg8ufbHxRHDh2Bf7DMel+bHgagU6863iJmGx7dnfwVysuU1GQUqRNWiCiL/wAz iIEuGr9MLz601A+8965mI52DprjZPJ4KsOPQEb6XHCzyg55iUSBboRxUwTc8qUrcIwMpnjlkFLhMm MioZ1Q2R9VdDtCRB2ZV5yYyNSBZ9bL/8Ec2d37a3mZcukr2FplixMlNZvrudlQ3A/8/l3OvuV9qlt 8yctQzONiJcDp0xGomPCMBqyOXKlpHcZJD1yMh8kQPfTpVXG9SORFaJV0p19L82R8PSCHX0CTm4Nz mOYwsH4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXqCw-00000002pJq-2Pi6; Mon, 30 Nov 2026 01:29:30 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXqCu-00000002pIy-2PRW for linux-arm-kernel@lists.infradead.org; Mon, 30 Nov 2026 01:29:29 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id E9134618EB; Mon, 30 Nov 2026 01:29:27 +0000 (UTC) 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-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-18.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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