From mboxrd@z Thu Jan 1 00:00:00 1970 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 B35B726656B; Tue, 8 Apr 2025 12:39:06 +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=1744115946; cv=none; b=SKa3CmymMvqlxpzFCNT7rAFNdP8wLA+9hYbCEITXVhTaqHfVjcYvjo3yKUZzurKEcsKxP3NOL5ZSsZK7cQVgUwziqA8McRYFxApGP8zWVDqT6RnY1xHxjD/UENKrhiZH3Vu9wKmSLHwOwbF5tZarwOYNKg0ce1D31G7wJwRoUV8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744115946; c=relaxed/simple; bh=RJgEsPz09RqPmewBWq56XAKo5riW5txdGQgS6z2T5Mc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=O218vfKGvwtsVwvbvupeOBcgUOSvMbtqIoSlsuXRHDEoKQ1r5kI5svsF2KHXZ74SfmWyVSPHbX/M/AczGqo0SH1+U3JA/r25bHJCn6O7fs57s2oXzeGdIshFiFLwkJVVPVD5jnpXZ78MqW7IJWlSZOZAc7FrXZAsjnI10ulIEcI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gIbIVu5/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="gIbIVu5/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 443D0C4CEE5; Tue, 8 Apr 2025 12:39:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744115946; bh=RJgEsPz09RqPmewBWq56XAKo5riW5txdGQgS6z2T5Mc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gIbIVu5/M76K+t9+7T/eHf5xOdNt/i3MQfkfemz5aZw99uo/MQ8Xh9mAH8tKnImxv SxXLCBKpA8qC+7SDn9j0n5SIqOrJVzGc7BmoZZ5eMp2i7ne9WzdvugmNRY9VE3KPFT f/hb/OF9esDytRubW2FPFJZj+kKdjFlB24lh0NrU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Randy Dunlap , Josh Poimboeuf , Ingo Molnar , Frederic Weisbecker , "Paul E. McKenney" , Linus Torvalds , Sasha Levin Subject: [PATCH 6.1 124/204] context_tracking: Always inline ct_{nmi,irq}_{enter,exit}() Date: Tue, 8 Apr 2025 12:50:54 +0200 Message-ID: <20250408104823.947997892@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408104820.266892317@linuxfoundation.org> References: <20250408104820.266892317@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Josh Poimboeuf [ Upstream commit 9ac50f7311dc8b39e355582f14c1e82da47a8196 ] Thanks to CONFIG_DEBUG_SECTION_MISMATCH, empty functions can be generated out of line. These can be called from noinstr code, so make sure they're always inlined. Fixes the following warnings: vmlinux.o: warning: objtool: irqentry_nmi_enter+0xa2: call to ct_nmi_enter() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_nmi_exit+0x16: call to ct_nmi_exit() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_exit+0x78: call to ct_irq_exit() leaves .noinstr.text section Fixes: 6f0e6c1598b1 ("context_tracking: Take IRQ eqs entrypoints over RCU") Reported-by: Randy Dunlap Signed-off-by: Josh Poimboeuf Signed-off-by: Ingo Molnar Cc: Frederic Weisbecker Cc: Paul E. McKenney Cc: Linus Torvalds Link: https://lore.kernel.org/r/8509bce3f536bcd4ae7af3a2cf6930d48c5e631a.1743481539.git.jpoimboe@kernel.org Closes: https://lore.kernel.org/d1eca076-fdde-484a-b33e-70e0d167c36d@infradead.org Signed-off-by: Sasha Levin --- include/linux/context_tracking_irq.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/context_tracking_irq.h b/include/linux/context_tracking_irq.h index c50b5670c4a52..197916ee91a4b 100644 --- a/include/linux/context_tracking_irq.h +++ b/include/linux/context_tracking_irq.h @@ -10,12 +10,12 @@ void ct_irq_exit_irqson(void); void ct_nmi_enter(void); void ct_nmi_exit(void); #else -static inline void ct_irq_enter(void) { } -static inline void ct_irq_exit(void) { } +static __always_inline void ct_irq_enter(void) { } +static __always_inline void ct_irq_exit(void) { } static inline void ct_irq_enter_irqson(void) { } static inline void ct_irq_exit_irqson(void) { } -static inline void ct_nmi_enter(void) { } -static inline void ct_nmi_exit(void) { } +static __always_inline void ct_nmi_enter(void) { } +static __always_inline void ct_nmi_exit(void) { } #endif #endif -- 2.39.5