From nobody Fri Jun 19 11:05:25 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5BC9CC43219 for ; Mon, 4 Apr 2022 21:49:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381226AbiDDVtg (ORCPT ); Mon, 4 Apr 2022 17:49:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379676AbiDDRss (ORCPT ); Mon, 4 Apr 2022 13:48:48 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B37D2E9E4; Mon, 4 Apr 2022 10:46:52 -0700 (PDT) Date: Mon, 04 Apr 2022 17:46:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1649094410; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KSkOvNqNnOs7E3KoKgoyjVwtYUhEAwIsq0ehhLiyF0E=; b=D6yt3LMA9H2vLnriSeGV/XTJf9rajAdJpyugw6Db+1VWWBsmtdsG38+eAbOZgGozJv8hkO zzRoIBOFOy8S6KG2y832cJiUQD+yG4vbye2uSnNNmtszGEDOF9a637ofAJWDJTRJBX4Hg5 TU4/BjvMTevgtGD4pQQNhqtYsqWdsZ7QpaMQoYUy5YIbozan5PJbLdneDHwViXuOVfh1PQ pUREEMY7pptW02CqG6kSMJ6R97jUBEuK28cbDXDkm3Hqdw8vMgTfJcZM98H+WZMfUTKGDv EKWKKIpciFFhkEL6NpME5SRaFJcC1TQmyHYJGx4ZUlY8eY82U0q9pK4y/5Rf6g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1649094410; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KSkOvNqNnOs7E3KoKgoyjVwtYUhEAwIsq0ehhLiyF0E=; b=5wXAgsvKjtIfrgOjOfFU3gpYHLGSbj+gWE+d57m2EbikkhhmLy6785gXN9H0bej6fJWNLq PXvjJVE1aVPHgiDA== From: "tip-bot2 for Borislav Petkov" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] task_stack, x86/cea: Force-inline stack helpers Cc: Borislav Petkov , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220324183607.31717-2-bp@alien8.de> References: <20220324183607.31717-2-bp@alien8.de> MIME-Version: 1.0 Message-ID: <164909440991.389.11468639429597148624.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the locking/core branch of tip: Commit-ID: e87f4152e542610d0b4c6c8548964a68a59d2040 Gitweb: https://git.kernel.org/tip/e87f4152e542610d0b4c6c8548964a68a= 59d2040 Author: Borislav Petkov AuthorDate: Wed, 23 Mar 2022 20:02:41 +01:00 Committer: Borislav Petkov CommitterDate: Mon, 04 Apr 2022 10:13:07 +02:00 task_stack, x86/cea: Force-inline stack helpers Force-inline two stack helpers to fix the following objtool warnings: vmlinux.o: warning: objtool: in_task_stack()+0xc: call to task_stack_page= () leaves .noinstr.text section vmlinux.o: warning: objtool: in_entry_stack()+0x10: call to cpu_entry_sta= ck() leaves .noinstr.text section Signed-off-by: Borislav Petkov Acked-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20220324183607.31717-2-bp@alien8.de --- arch/x86/include/asm/cpu_entry_area.h | 2 +- include/linux/sched/task_stack.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/cpu_entry_area.h b/arch/x86/include/asm/c= pu_entry_area.h index dd5ea1b..75efc4c 100644 --- a/arch/x86/include/asm/cpu_entry_area.h +++ b/arch/x86/include/asm/cpu_entry_area.h @@ -143,7 +143,7 @@ extern void cea_set_pte(void *cea_vaddr, phys_addr_t pa= , pgprot_t flags); =20 extern struct cpu_entry_area *get_cpu_entry_area(int cpu); =20 -static inline struct entry_stack *cpu_entry_stack(int cpu) +static __always_inline struct entry_stack *cpu_entry_stack(int cpu) { return &get_cpu_entry_area(cpu)->entry_stack_page.stack; } diff --git a/include/linux/sched/task_stack.h b/include/linux/sched/task_st= ack.h index 892562e..5e799a4 100644 --- a/include/linux/sched/task_stack.h +++ b/include/linux/sched/task_stack.h @@ -16,7 +16,7 @@ * try_get_task_stack() instead. task_stack_page will return a pointer * that could get freed out from under you. */ -static inline void *task_stack_page(const struct task_struct *task) +static __always_inline void *task_stack_page(const struct task_struct *tas= k) { return task->stack; }