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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7DC37CA6007 for ; Thu, 8 Oct 2026 08:14:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:To:Subject :MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dSnC/p/+SqebYb5ikYjr8qnUSvI5a0Pua5cHHXDTyjM=; b=X8s93YdqaCNFhT SoZ2f1dBv9Gvtvb8L8Pfq7MDmGtpNOROsemWPiTZDfUQZ7NUhXXFLL7RqBmxYpw2/iKLSRtkCDfSP Rks2I2JwpKI+JvKKris5PtaGZJ2wI/yko6Hv6fa3WIBmcU5UgzOMc3eUkO/rq6XkTJJEDl0zpwaXz 5rlk2s5yL6Wzf5QiA8eSvRPWGxq4FVgI7D/z/BpCDTtpNx9OpGXEw3kGcq7/3xpw28uWTkK2+GfL1 4XFbio/wStj0c09vZcfSOXzK/N37IajGNn83UTsHxLYm7X0bcRfKTA/5MA36i8nQWXNJdOVakMkJk XtJ18J0x+49ULqpA4ksg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xEjGf-00000003qEb-1hOH; Thu, 08 Oct 2026 08:14:21 +0000 Received: from canpmsgout01.his.huawei.com ([113.46.200.216]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xEjGd-00000003qE5-0h9a for linux-arm-kernel@lists.infradead.org; Thu, 08 Oct 2026 08:14:20 +0000 dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=dSnC/p/+SqebYb5ikYjr8qnUSvI5a0Pua5cHHXDTyjM=; b=h5MEJMC62bNhgr2cdgxykONMPR87RFdA9d51LZY+eVjDarwlIXSkjLvHt1hTndjchLwZadqaQ qtFg91SNVPRoQSS+WkFLUR7QVS7/j/qiQdEZHnIM042b0XyWttL911syL3OPR1bxHIYG6Fh7Ilc 2hY4ozAjd0sbHjZ6ZfNk9jA= Received: from mail.maildlp.com (unknown [172.19.162.197]) by canpmsgout01.his.huawei.com (SkyGuard) with ESMTPS id 4j0jBX0ggHz1T4Lb; Thu, 8 Oct 2026 16:01:56 +0800 (CST) Received: from kwepemk200008.china.huawei.com (unknown [7.202.194.74]) by mail.maildlp.com (Postfix) with ESMTPS id D70AD40591; Thu, 8 Oct 2026 16:14:08 +0800 (CST) Received: from [10.67.110.68] (10.67.110.68) by kwepemk200008.china.huawei.com (7.202.194.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.45; Thu, 8 Oct 2026 16:14:08 +0800 Message-ID: <382db58f-a145-4c8c-861a-24907d305a77@huawei.com> Date: Thu, 8 Oct 2026 16:14:06 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 11/21] arm64: percpu: Annotate __kern_my_cpu_offset() as '__always_inline' To: Will Deacon , References: <20260918161407.2300-1-will@kernel.org> <20260918161407.2300-12-will@kernel.org> From: Jinjie Ruan In-Reply-To: <20260918161407.2300-12-will@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.110.68] X-ClientProxiedBy: kwepems200001.china.huawei.com (7.221.188.67) To kwepemk200008.china.huawei.com (7.202.194.74) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261008_011419_357724_866BE5D6 X-CRM114-Status: GOOD ( 12.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Vladimir Murzin , Arnd Bergmann , Catalin Marinas , Linus Walleij , linux-kernel@vger.kernel.org, Mostafa Saleh , Marc Zyngier , David Hildenbrand , Lorenzo Stoakes , Oliver Upton , Ard Biesheuvel Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 在 2026/9/19 0:13, Will Deacon 写道: > Allow the use of per-cpu variables from noinstr functions by marking > __kern_my_cpu_offset() as '__always_inline'. This will later be relied > upon to detect stack overflow of the overflow stack from noinstr C code. > > Signed-off-by: Will Deacon > --- > arch/arm64/include/asm/percpu.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/include/asm/percpu.h b/arch/arm64/include/asm/percpu.h > index 3dc7291b16e9..cb9ae8a1ae87 100644 > --- a/arch/arm64/include/asm/percpu.h > +++ b/arch/arm64/include/asm/percpu.h > @@ -21,7 +21,7 @@ static inline unsigned long __hyp_my_cpu_offset(void) > return read_sysreg(tpidr_el2); > } > > -static inline unsigned long __kern_my_cpu_offset(void) > +static __always_inline unsigned long __kern_my_cpu_offset(void) Reviewed-by: Jinjie Ruan > { > unsigned long off; > -- Best regards, Jinjie