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 89022606A33A for ; Tue, 1 Dec 2026 04:26:30 +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=p5Bz9kKs; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PRGsyQW3 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=K7BffawZf+SP6GH1IX6JzXjzfOAoF+X5nhz2bA7xvCc=; b=p5Bz9kKsCfVFyTFxJBLQOzFB1F I4UlotqSBjCg2TRfI03RzQWqdJfNyOgDWUk1LfCSnaoy/9RiWvyFA0t2/w1mCyz8lRqRuZyI3J/94 yVsvToCDgi987vMMs4IggiQPG169JMksS+2TY4s4tbMNs8FT4GhbmfpOVHYCIZ6bdrFBUdxQjkwfz 8pULLT/Tt0EBqy7rNpZyFl2B0M5RhkLg5NoIqHFEpVILNRh+/pbaaowGSjBzW3NFhL8XSzhx4zJgI /GFuO3dP1b1l7JZacMqivt3nO7AIAaFJUkUlKokkWTFEF0HmeIm64/TNPr6IjnwPZjAYX+8bMg4IY diHiy6wQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYFRi-00000006Z8B-2eBd; Tue, 01 Dec 2026 04:26:26 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYFRR-00000006Yx9-0mVU; Tue, 01 Dec 2026 04:26:12 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id D38A143C3D; Tue, 1 Dec 2026 04:26:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1EBF91F0089C; Tue, 1 Dec 2026 04:25:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796099168; bh=I+lKjXDBr5E04ix4I0XeVVlzftppHLg0sMgoagmTcZY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=PRGsyQW3p1/mqKL/DKICBmNU7Tvsl5Z6gwsj//MO35Sm6ZGLieKu2XxtPqxiMKxQp dusUh58nYBRhgRrGlgDwh0GiVXpeSUqJBfnDog6hn73+g8ACrXZw3Q/ETVGMRasbT3 t+IHFBcB4WgnH3MeQMJwAXEpUm5cF3ltPE/xG7Yj54nEsevRs4Z6J95UI9Ip2wI/1F ReJkyO2ZLYMPwr7q+9ZtK+aj8dEX/3rs0dLTJbmTR/ESA/A34ZfnalMgCEcmRzh/2j KAwTa/SV9gRQvcQioSBpCTv3SGsWoQbIOdWTpRLI95E79uSNj9yDBxow5lb8ox6EX4 3YwP5srNKeaRQ== From: Song Liu To: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, live-patching@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org Cc: rostedt@goodmis.org, mhiramat@kernel.org, mark.rutland@arm.com, peterz@infradead.org, tglx@kernel.org, frederic@kernel.org, paulmck@kernel.org, catalin.marinas@arm.com, will@kernel.org, maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com, chleroy@kernel.org, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, ojeda@kernel.org, kernel-team@meta.com, Song Liu Subject: [PATCH v3 13/22] ktime: Mark ktime_to_ns() notrace Date: Mon, 30 Nov 2026 20:21:52 -0800 Message-ID: <20261201042201.3199928-14-song@kernel.org> X-Mailer: git-send-email 2.53.1 In-Reply-To: <20261201042201.3199928-1-song@kernel.org> References: <20261201042201.3199928-1-song@kernel.org> X-Archived-By: MIME-Version: 1.0 X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 NMI safe accessors used as trace clocks, such as ktime_get_mono_fast_ns() and ktime_get_boot_fast_ns(), are notrace and call ktime_to_ns(). ktime_to_ns() is a plain inline function, so an out-of-line copy is untraced only because inline implies notrace, and tracing it would recurse through the trace clock. Mark it notrace explicitly. No functional change. Assisted-by: Claude:claude-opus-5 Signed-off-by: Song Liu --- include/linux/ktime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/ktime.h b/include/linux/ktime.h index f247e564602f..ed56774f68ea 100644 --- a/include/linux/ktime.h +++ b/include/linux/ktime.h @@ -75,7 +75,7 @@ static inline ktime_t timespec64_to_ktime(struct timespec64 ts) #define ktime_to_timespec64(kt) ns_to_timespec64((kt)) /* Convert ktime_t to nanoseconds */ -static inline s64 ktime_to_ns(const ktime_t kt) +static inline s64 notrace ktime_to_ns(const ktime_t kt) { return kt; } -- 2.53.1-Meta _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv