Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp918129rdb; Tue, 30 Jan 2024 02:34:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IEf6e/Y2kwPdJOws0eKCwvjHd0jzpZqL56DXtLBTUbtQugTL7KihD9lS8m0qVSSgmUsBV7X X-Received: by 2002:aa7:d80a:0:b0:55e:bc29:6fcb with SMTP id v10-20020aa7d80a000000b0055ebc296fcbmr5168151edq.10.1706610877582; Tue, 30 Jan 2024 02:34:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706610877; cv=pass; d=google.com; s=arc-20160816; b=0Q94cbofuGei9zf7TUwpmC474Wuuxlal5kzjamp5wRUR8BRTltMuQnWVgqmgvsGH3h Qocs551Oul7zO6t8g1n8sgPpDcHMQqOfFEmx47p8YJksOU5yu08w0pZ1eCNShPsgDX/l 4rZsRmkPWo349iD9cK/09rJLi1rhCpcr4N8FaatMB3e6YU/JJ80hyCBbTH1mcPCTf/aN QwLi6Dp3eJvTCgLYWs7NTzSIdsl/kCYw/IAWh6cfbWXUYi2V8eZoxgwRW2I95w3l1g5W xXNrwL5fDlv9rqohH87uWxXbZzqu1Sj2CF9ylJWeDb4SlbJkNz0xOToU5hls2Y0NGSyT CsOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=Z+188NIr6u8/0KrpgMOsm7qPz7rBQ61jD6DywdmgToU=; fh=OZ4cAnjmhkMzaBuXW/xa5Fk/CFRczBJ9b84qTSjBbx0=; b=p6opyk7DGOGIXue74yQ68o/IFUZmOAnataDNgl+yywx+jrrCwrHdKd8j1Q1IydndLa k9I0XScovsBC1uaBKHu3pdlrq8/6mT6a6SPXYd06na5LBtXBeHt85SLYQVFTY6nUt9K9 uK8CKHtiutl1cQywkvo30II5wzlRVWPO3WMXZOnK8wa/X7asq2MBoZ6lKhfedAI8Obyz BwhkHrYmOjEt9xsNF1BkroG6TMFQK4dmy90IYnhrgi8lk857EP0IEoJnmJnJFPCcx4Om lu6DBlkzmkDF50jXf0ecpUPvBPck9Y67Y8kU8KgutJb0OQCCNynwf9JxkMNwA2lAVg+x sscA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-44386-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44386-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bl16-20020a056402211000b0055f15ef689dsi1371755edb.468.2024.01.30.02.34.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 02:34:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44386-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-44386-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44386-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5770F1F24C31 for ; Tue, 30 Jan 2024 10:34:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEE3760EDB; Tue, 30 Jan 2024 10:34:29 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52F6F360AE for ; Tue, 30 Jan 2024 10:34:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706610869; cv=none; b=IGzWsefZGYWZA190qIltQlHtdj5PPeRDahLBXVxX22fVmkSQ6UEOpiim7p/av8O+t7wTOEy/Df6+s5EVeJFS0xmKGlu1PKM2mIpTq+dKbuNHw8KEmSP5ETr+gYxXR7QxnBQMf6IQufYjbwS8hF3HLmSIc2TX8djs+z7YiXnmtj8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706610869; c=relaxed/simple; bh=T3gGNMPwCH3MMYOBJy9nDihF4Sd9waF/RayDJzaEarI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QVGugwHycGirDSMQLGwhjMfAqe+x0e0dU9BBaibRWRP6PuXs4fHemAOsGgUi6NQbeXNC0l9LRfcTprWxelEMC4t7u3aDzd7bbsBLIYPozfO3A2Rx9iV7VhAWYn02oi7AkVhgr3ceNQmbR8lBOkiF95jqWFG6Zo5QpxSziWrtjRU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 43DEFDA7; Tue, 30 Jan 2024 02:35:10 -0800 (PST) Received: from FVFF77S0Q05N (unknown [10.57.48.92]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2453D3F5A1; Tue, 30 Jan 2024 02:34:25 -0800 (PST) Date: Tue, 30 Jan 2024 10:34:22 +0000 From: Mark Rutland To: Kemeng Shi Cc: catalin.marinas@arm.com, will@kernel.org, revest@chromium.org, rostedt@goodmis.org, arnd@arndb.de, pengdonglin@sangfor.com.cn, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: make member of struct pt_regs and it's offset macro in the same order Message-ID: References: <20240130175504.106364-1-shikemeng@huaweicloud.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240130175504.106364-1-shikemeng@huaweicloud.com> On Wed, Jan 31, 2024 at 01:55:04AM +0800, Kemeng Shi wrote: > In struct pt_regs, member pstate is after member pc. Move offset macro > of pstate after offset macro of pc to improve readability a little. > > Signed-off-by: Kemeng Shi I think this makes sense as a trivial cleanup, so FWIW: Acked-by: Mark Rutland Mark. > --- > arch/arm64/kernel/asm-offsets.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/kernel/asm-offsets.c b/arch/arm64/kernel/asm-offsets.c > index 5ff1942b04fc..865ba901c233 100644 > --- a/arch/arm64/kernel/asm-offsets.c > +++ b/arch/arm64/kernel/asm-offsets.c > @@ -75,8 +75,8 @@ int main(void) > DEFINE(S_FP, offsetof(struct pt_regs, regs[29])); > DEFINE(S_LR, offsetof(struct pt_regs, regs[30])); > DEFINE(S_SP, offsetof(struct pt_regs, sp)); > - DEFINE(S_PSTATE, offsetof(struct pt_regs, pstate)); > DEFINE(S_PC, offsetof(struct pt_regs, pc)); > + DEFINE(S_PSTATE, offsetof(struct pt_regs, pstate)); > DEFINE(S_SYSCALLNO, offsetof(struct pt_regs, syscallno)); > DEFINE(S_SDEI_TTBR1, offsetof(struct pt_regs, sdei_ttbr1)); > DEFINE(S_PMR_SAVE, offsetof(struct pt_regs, pmr_save)); > -- > 2.30.0 >