From nobody Sat Feb 7 18:16:01 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 470C0314D1A for ; Fri, 6 Feb 2026 07:41:33 +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=1770363693; cv=none; b=IEXgehaKXtorDkKbca5ex8QE+QeBVp7sACIvl296nTRI9G/yZRya4entcTJ0Jo6f+TLeTO+SuQTYrvGWVXhLyHkWypdp5xtvtwuUJvyQhVD2K4R5MKUOySdZbwTQF2w5iS65TApPsLTeKpEK6PbSY3v2HPCaToSr5Pc85RVkLWU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770363693; c=relaxed/simple; bh=qL9LTVdj2WXyIaZBXteTV6Jbvm5XQjTxzAmlcAFWL5w=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ngRNQRBEwo+kYP5zyQ0q+Ltvi5r/OZecAUgj9+u+hnOozfB6mbf4hmb2c0vVdhQ96FJt65O0z/phKeurkDpesHvrXmJlCyQkLdLy40W+NGjdhBhP3Y0OWjVj6EwBYUh6HE0tYZdsOQJrAceUmPWV/XPbGvfao/P53WL7cmIcVso= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SuxMJ7cx; 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="SuxMJ7cx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17856C116C6; Fri, 6 Feb 2026 07:41:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770363692; bh=qL9LTVdj2WXyIaZBXteTV6Jbvm5XQjTxzAmlcAFWL5w=; h=From:To:Cc:Subject:Date:From; b=SuxMJ7cxuHX83Ah4h+4W+JzQ2ySKDqsi34b8vYRKcFsCtCwKYpAUM0iRiwha1zbBB 4t0cqxd90V9df5IL6KbLLfRAEtagKZRApl1rLCljMd2PBpjb3/7p5zpN+rqVqho15w UiSs0IvRnfW3NO3U7WYM5qufddhxTYn7MRJMkcdkBFOIX2tc8s5fIUC3ZU7ikSpJcF b7YxzeOnf+cOGjd57CLg1c4FqolyM+YarkvtPUiPj7WWBXD4/XecR8PP98vMl8U4eG TamgxdVXlghtqao3Ha0Rszyhobb7FcGysW/0CzAz1RqUQ3wUOnKBS5LtR1MgKi4nb8 Z2S/AYIFYWn9w== From: Arnd Bergmann To: Thomas Gleixner , "Peter Zijlstra (Intel)" , Mathieu Desnoyers Cc: Josh Poimboeuf , Arnd Bergmann , Ingo Molnar , Eric Dumazet , linux-kernel@vger.kernel.org Subject: [PATCH] rseq: mark rseq_arm_slice_extension_timer() __always_inline Date: Fri, 6 Feb 2026 08:41:13 +0100 Message-Id: <20260206074122.709580-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 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" From: Arnd Bergmann objtool warns about this function being called inside of a uaccess section: kernel/entry/common.o: warning: objtool: irqentry_exit+0x1dc: call to rseq_= arm_slice_extension_timer() with UACCESS enabled Interestingly, this happens with CONFIG_RSEQ_SLICE_EXTENSION disabled, so this is an empty function, as the normal implementation is already marked __always_inline. I could reproduce this multiple times with gcc-11 but not with gcc-15, so the compiler probably got better at identifying the trivial function. Mark all the empty helpers for !RSEQ_SLICE_EXTENSION as __always_inline for consistency, avoiding this warning. Fixes: 0ac3b5c3dc45 ("rseq: Implement time slice extension enforcement time= r") Signed-off-by: Arnd Bergmann --- include/linux/rseq_entry.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/rseq_entry.h b/include/linux/rseq_entry.h index cbc4a791618b..c6831c93cd6e 100644 --- a/include/linux/rseq_entry.h +++ b/include/linux/rseq_entry.h @@ -216,10 +216,10 @@ static __always_inline bool rseq_grant_slice_extensio= n(bool work_pending) } =20 #else /* CONFIG_RSEQ_SLICE_EXTENSION */ -static inline bool rseq_slice_extension_enabled(void) { return false; } -static inline bool rseq_arm_slice_extension_timer(void) { return false; } -static inline void rseq_slice_clear_grant(struct task_struct *t) { } -static inline bool rseq_grant_slice_extension(bool work_pending) { return = false; } +static __always_inline bool rseq_slice_extension_enabled(void) { return fa= lse; } +static __always_inline bool rseq_arm_slice_extension_timer(void) { return = false; } +static __always_inline void rseq_slice_clear_grant(struct task_struct *t) = { } +static __always_inline bool rseq_grant_slice_extension(bool work_pending) = { return false; } #endif /* !CONFIG_RSEQ_SLICE_EXTENSION */ =20 bool rseq_debug_update_user_cs(struct task_struct *t, struct pt_regs *regs= , unsigned long csaddr); --=20 2.39.5