From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB7F61A58A for ; Fri, 24 Nov 2023 10:59:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hvqhBloi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D862C433C7; Fri, 24 Nov 2023 10:59:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700823599; bh=cezKeh7SdRtECU2OH5eZ7assfFSS+2PhuyPdiQNTe2w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hvqhBloi1w0AegPcQTeJ1DGNy4e0GSGTalSqBSAabtFSFyXQfQBhFNxnXUxCtv8iU NKAhtuQ+dbBhS/pR6gfNEOxNogHZFA5EHGLWBrW746+8yuyF8QRgRo9e0ClYBWs+Ce vjsQVPbtGrfPXfpzxZpGflb4zNH2YJXPrJV47nWtJfWwtNRE7HnFplQ9Cv3Gvdvtq7 /o9/uuWSklZz+vIWntiykJtSweTbjQv/JYqG+aZNAvsoqlFklH1R/vEK3ZQBayUQKe QcaHZ8kQEiOooor8BwFj71lURDRnch76kM5k/+sWSHRabsPX5cjbfVlBAhV3keRs4T pb53uAmQ6Qu3Q== Date: Fri, 24 Nov 2023 10:59:55 +0000 From: Simon Horman To: Jesse Brandeburg Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, Julia Lawall , Marcin Szycik Subject: Re: [PATCH iwl-next v1 03/13] intel: legacy: field prep conversion Message-ID: <20231124105955.GC50352@kernel.org> References: <20231121211921.19834-1-jesse.brandeburg@intel.com> <20231121211921.19834-4-jesse.brandeburg@intel.com> Precedence: bulk X-Mailing-List: netdev@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: <20231121211921.19834-4-jesse.brandeburg@intel.com> On Tue, Nov 21, 2023 at 01:19:11PM -0800, Jesse Brandeburg wrote: > Refactor several older Intel drivers to use FIELD_PREP(), which reduces > lines of code and adds clarity of intent. > > This code was generated by the following coccinelle/spatch script and > then manually repaired. > > @prep@ > constant shift,mask; > type T; > expression a; > @@ > -(((T)(a) << shift) & mask) > +FIELD_PREP(mask, a) > > Cc: Julia Lawall > Reviewed-by: Marcin Szycik > Signed-off-by: Jesse Brandeburg Reviewed-by: Simon Horman