From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 79B6F26ED40; Wed, 30 Sep 2026 18:47:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790794027; cv=none; b=Yf958lPiquQ416wRXMSp1jLaYC3BWcQMT1BZxiEJR7az4yaTDdu20togq+dTrTPscUTOZDFPXKZoGgkczeD6AcEvRdD/hRHEw+JJRIDUJVnY1BRa1q6uM06aqq7zr3Ks96od5oNEoOlD8+S8pWHMIYlC18yVM7pzv7E0I7CcH4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790794027; c=relaxed/simple; bh=r9EAHuMvipqeMSKamTvtlQ4VEKBa1LbtSKYlNj12+lY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hV/1R1PaFn5EhFguy8qOhjN70X4sRlPeMAMg/DmF4EENWt67+st3pvDINxK4rizu2jYz7TNLOU7iQ5A2mI08qsepIkT0l1SnYbcRJ/xklGxIIK3ipW3qnROKDM5v0pklCT3FPZoQiR5BnTSAXAmUeTy4MwK9HrBzctHrfVNmwC0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HJESnmRu; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HJESnmRu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4F6D1F000FF; Wed, 30 Sep 2026 18:47:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790794026; bh=EWwRUAhP5Htykr/xkGopL7XVPj2yxddTV7O95rh+ELk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=HJESnmRu5SN14+i/A1yi2hxgnixW1zTvG3W5TuTWILdEcfuDMg6xONMZgViEMVFE7 DtAFCOUd4l7VuLZi9exfMSX69FFTiJBifADtcWgikH+ZVuP4M3nXfPgwUlvVitE3fz RaLn0oJZvSgu0rXZFjm0pGU3+wz1xU7MYVb6R3cs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mark Rutland , Leonardo Bras , Will Deacon , Sasha Levin Subject: [PATCH 6.6 0067/1193] arm64/daifflags: Make local_daif_*() helpers __always_inline Date: Wed, 30 Sep 2026 17:12:31 +0200 Message-ID: <20260930152435.759283563@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152434.301151190@linuxfoundation.org> References: <20260930152434.301151190@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Leonardo Bras [ Upstream commit 827ce94e0897a70241abf810b1d3d7d083053a39 ] Make sure those helpers are always inlined and instrumentation safe. Suggested-by: Mark Rutland Signed-off-by: Leonardo Bras Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- arch/arm64/include/asm/daifflags.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm64/include/asm/daifflags.h b/arch/arm64/include/asm/daifflags.h index 55f57dfa8e2fe..e2ad84c2f32bc 100644 --- a/arch/arm64/include/asm/daifflags.h +++ b/arch/arm64/include/asm/daifflags.h @@ -19,7 +19,7 @@ /* mask/save/unmask/restore all exceptions, including interrupts. */ -static inline void local_daif_mask(void) +static __always_inline void local_daif_mask(void) { WARN_ON(system_has_prio_mask_debugging() && (read_sysreg_s(SYS_ICC_PMR_EL1) == (GIC_PRIO_IRQOFF | @@ -38,7 +38,7 @@ static inline void local_daif_mask(void) trace_hardirqs_off(); } -static inline unsigned long local_daif_save_flags(void) +static __always_inline unsigned long local_daif_save_flags(void) { unsigned long flags; @@ -53,7 +53,7 @@ static inline unsigned long local_daif_save_flags(void) return flags; } -static inline unsigned long local_daif_save(void) +static __always_inline unsigned long local_daif_save(void) { unsigned long flags; @@ -64,7 +64,7 @@ static inline unsigned long local_daif_save(void) return flags; } -static inline void local_daif_restore(unsigned long flags) +static __always_inline void local_daif_restore(unsigned long flags) { bool irq_disabled = flags & PSR_I_BIT; @@ -124,7 +124,7 @@ static inline void local_daif_restore(unsigned long flags) * Called by synchronous exception handlers to restore the DAIF bits that were * modified by taking an exception. */ -static inline void local_daif_inherit(struct pt_regs *regs) +static __always_inline void local_daif_inherit(struct pt_regs *regs) { unsigned long flags = regs->pstate & DAIF_MASK; -- 2.53.0