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 858DF20CCD8; Tue, 8 Apr 2025 11:57:18 +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=1744113438; cv=none; b=ksidVv4LNAhKWEG+Aqxhe/ACI5qx6PYpVJ1EjVB32S2Otai4xUXvpmd0vyYXwYVK3k0kDDPym9GjgJa+TUo4SAFcKyATfFK45hd2bwsmSQzUCDpBsk5Nyrlq8a5ncG8QiHaaa2AGOAiWimqocwkdiUrqxAM6NV5horn0wW0LTZE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744113438; c=relaxed/simple; bh=sGtcokGOsSYDrzxRCZaPSwFIDkz+K52pcZSweLeMwW8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WgzuEl2k2r9/qUp9ki/1yyaI3/BswSpeQH8kD/pdXkmpJWdWhADbdw+UNATa7IsxqbiicAMLDiOH8fQoCFlZizJg1Vk+VfNJIkeU/KaMq9RZ+Y1iV0mwtNIa9ZGbOY81McWGlIC2dwDvfG9BiWQCLQr39Y7sbkKEDwI3GKwch7Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=X9j71SuS; 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="X9j71SuS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 176B2C4CEE7; Tue, 8 Apr 2025 11:57:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744113438; bh=sGtcokGOsSYDrzxRCZaPSwFIDkz+K52pcZSweLeMwW8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X9j71SuSd1wN7I3V2Jrk+aj8BnMSCcfMFZ+h/ww55EeSEJp4vmSzrW93vkD4hkmay d+a5wmqNiKIlYxOOL7QVF6lflvKG8Cg00XPXi4A7kEeu3RPy4mYw21XWEc6KNTkVPn hlIi3OFE4vuyQQL0RfAjzvTfP8ltiUIMhovUseIw= 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.6 160/268] context_tracking: Always inline ct_{nmi,irq}_{enter,exit}() Date: Tue, 8 Apr 2025 12:49:31 +0200 Message-ID: <20250408104832.862985034@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408104828.499967190@linuxfoundation.org> References: <20250408104828.499967190@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.6-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