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 3C03BC433EF for ; Thu, 14 Oct 2021 14:59:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2862B61213 for ; Thu, 14 Oct 2021 14:59:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232778AbhJNPBI (ORCPT ); Thu, 14 Oct 2021 11:01:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:42680 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232204AbhJNO75 (ORCPT ); Thu, 14 Oct 2021 10:59:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2C35D611C8; Thu, 14 Oct 2021 14:57:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634223467; bh=7W4mpeedf7Ubg991HybfBOJGbj4JQrZbtCLmLnQImkg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SmK/Jr3/4Wf9+bUV/osmgseAGc/Zyvw2nuW1IKTFhQknBTyL9QX2+PWpGbumcoFYG PZoo77LmUc5EH5bJZJKiGKFaxXRImy1A3DqkiFCnM91Te5uYMvihChCVMODGvvTSGW gvDKf0PzB88jnP8O9/hIPBaBf72b5TlxHWlzktdk= 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 4.14 33/33] sched: Always inline is_percpu_thread() Date: Thu, 14 Oct 2021 16:54:05 +0200 Message-Id: <20211014145209.899529085@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211014145208.775270267@linuxfoundation.org> References: <20211014145208.775270267@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: stable@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 99650f05c271..914cc8b180ed 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1390,7 +1390,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