From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE749C433EF for ; Thu, 14 Oct 2021 15:05:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C3CF2610D1 for ; Thu, 14 Oct 2021 15:05:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234041AbhJNPIC (ORCPT ); Thu, 14 Oct 2021 11:08:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:51956 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233411AbhJNPGS (ORCPT ); Thu, 14 Oct 2021 11:06:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DF99B6120C; Thu, 14 Oct 2021 15:01:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634223701; bh=X2qHAsp56YMNgUDqJUXqXG6yyLbOSmo094q9X/g+quo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=emXVZL91Xa9BuLBPp1anxxS6AimiC5BY3BA4S1GWz5H0S5h+Uj7XJJMv0ZeDDB/Y9 BqqOZdLXSrjqK18zqE2pumolquL2LZ77WmLE7A/iANPPHLWLEgZ8LskKSCs99lFalB zy/Y/pFTqANs8BP9I4/YmM7+PsyCvVy/HP0kNeqM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stephen Rothwell , "Peter Zijlstra (Intel)" , Sasha Levin Subject: [PATCH 5.14 28/30] sched: Always inline is_percpu_thread() Date: Thu, 14 Oct 2021 16:54:33 +0200 Message-Id: <20211014145210.448561134@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211014145209.520017940@linuxfoundation.org> References: <20211014145209.520017940@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peter Zijlstra [ Upstream commit 83d40a61046f73103b4e5d8f1310261487ff63b0 ] vmlinux.o: warning: objtool: check_preemption_disabled()+0x81: call to is_percpu_thread() leaves .noinstr.text section Reported-by: Stephen Rothwell Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20210928084218.063371959@infradead.org Signed-off-by: Sasha Levin --- include/linux/sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index f6935787e7e8..8e10c7accdbc 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1633,7 +1633,7 @@ extern struct pid *cad_pid; #define tsk_used_math(p) ((p)->flags & PF_USED_MATH) #define used_math() tsk_used_math(current) -static inline bool is_percpu_thread(void) +static __always_inline bool is_percpu_thread(void) { #ifdef CONFIG_SMP return (current->flags & PF_NO_SETAFFINITY) && -- 2.33.0