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 A586CC61CE8 for ; Thu, 12 Jun 2025 19:43:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=sIri+8ueIWYqKzsYFWBLvyPfUx7fG1/u504P8kfBtiY=; b=ZoGG3dRpV5a2GyIrIZvrL1bE6x ggEXLrz8KFGltneoeoG+Dq74gjLQ4xuNUUC/Sp04MOlgAwFmMgMP3/KduL2tS82UU+qaCl05DQA5+ 0BzFvSMpN8wHeGNejhw/7Q3pt6B/FjJNBRTzDkA9t++jRR1Kds+cnnV9HI2ndX5Ub1iNl+9jTeSIl B2xtMsz2vuS9tajPAFXeadH/65vlYCEjWQd9sYeKhDLiDovXkv5fFqD/EzIBZ8Y0zkurzajE8XTUK UBE/KNj4ozO7y8bWcpcNk6in95spb4fGZ3j8XqWjiTxlYQPEroY2rkBAuHdg9B22+Wh8PRPFMNPZh wZUzMjQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uPnpB-0000000EGzA-2R9a; Thu, 12 Jun 2025 19:42:57 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uPieX-0000000Da6k-2xnB for linux-arm-kernel@lists.infradead.org; Thu, 12 Jun 2025 14:11:38 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 8074C5C65B1; Thu, 12 Jun 2025 14:09:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C053DC4CEEA; Thu, 12 Jun 2025 14:11:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1749737496; bh=eVcT22CR6MUvmIdjYr3MtOpYN2U0aHt7Hy7WNsb7NkM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rF1dgaeHPS7gQ0UjeHj1ioH3nZys3BESMWp2LfjYJNHYhw5M9lc1TIihF5xWfoxXK 5iCWIOSnDgcG+jFBZDdO0ywovQxdgyD7ph3XLqnazH6rknAxTxP8K/DoxpW0iUCIW8 HYWkSEUH5+jJM8bJ8ntZOqzFEJUiYia5B5ISrRg7X09jz4efh2nPXP3mUQuJ7Tuw25 WxRLc7225gaD7Ey274985yUp5TX2VKwcrrwlvvZQotqll2x9vGDLT+6Oo4iRlq90q1 1aCGQKjoVi17yK7bFTJAnCP4/sHsroEyROlll7hzgeZrF7mcpnI+EhpKvTSxERiPrg oA60e9XLjelIA== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1uPieU-006GX7-24; Thu, 12 Jun 2025 15:11:34 +0100 Date: Thu, 12 Jun 2025 15:11:33 +0100 Message-ID: <86sek5cane.wl-maz@kernel.org> From: Marc Zyngier To: Luo Jie Cc: Yury Norov , Rasmus Villemoes , Julia Lawall , "Nicolas\ Palix" , Catalin Marinas , Will Deacon , Oliver Upton , Joey Gouly , Suzuki K Poulose , Zenghui Yu , , , , , , , , , , Subject: Re: [PATCH v4 0/5] Add FIELD_MODIFY() helper In-Reply-To: <20250612-field_modify-v4-0-ae4f74da45a6@quicinc.com> References: <20250612-field_modify-v4-0-ae4f74da45a6@quicinc.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: quic_luoj@quicinc.com, yury.norov@gmail.com, linux@rasmusvillemoes.dk, Julia.Lawall@inria.fr, nicolas.palix@imag.fr, catalin.marinas@arm.com, will@kernel.org, oliver.upton@linux.dev, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, linux-kernel@vger.kernel.org, cocci@inria.fr, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, andrew@lunn.ch, quic_kkumarcs@quicinc.com, quic_linchen@quicinc.com, quic_leiwei@quicinc.com, quic_suruchia@quicinc.com, quic_pavir@quicinc.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250612_071137_834717_EAA2FB26 X-CRM114-Status: GOOD ( 19.61 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 12 Jun 2025 14:46:07 +0100, Luo Jie wrote: > > Add the helper FIELD_MODIFY() to the FIELD_XXX family of bitfield > macros. It is functionally similar as xxx_replace_bits(), but adds > the compile time checking to catch incorrect parameter type errors. > > This series also converts the four instances of opencoded FIELD_MODIFY() > that are found in the core kernel files, to instead use the new > FIELD_MODIFY() macro. This is achieved with Coccinelle, by adding > the script field_modify.cocci. > > The changes are validated on IPQ9574 SoC which uses ARM64 architecture. > > Signed-off-by: Luo Jie I already indicated that the *pre-existing* set of helpers are enough for what we want to do, that we *already* use them for KVM/arm64, and that I didn't need nor want two ways to do the same thing in the same code base. My opinion hasn't changed on that front, and I don't see a point in these patches. M. -- Without deviation from the norm, progress is not possible.