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 A01199467 for ; Fri, 24 Nov 2023 11:01:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lBgYXgIb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 281B2C433C7; Fri, 24 Nov 2023 11:01:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700823680; bh=qKEaRakOnMm1ojW/qLc+2HyU/B7ej1ewi3W5OWlhRtE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lBgYXgIbbQNpAC/f0WN07/m8TkUPwwuZe+AvW5WW+PWOGC3ju7WI8wGHHCFScepvr jiE8uT4gmm91GgwocZI8UYSRpMDjSWwmKIN73rZBVT4Ejc8S+S+dz03psFDbSaKDsW YP/da8J5nfIB9wod1uWSs+GN7SOUoOgJwScStp8kf4pt6/AHxKbjyH6Nirzndml0k9 5ULBY7IFlrzUjTHpaksiZC7VPdK1ZB7dbAS/mEFUyDt0EzOrUac78YHx59/2Rxv6V9 CG8IAAa31YxpRfuV2IM2m+zJrFecKigUDRE5WIOz4RXlE3mQeXzbOUPFg/Krcf6OTV RNjYsdsBfA0xg== Date: Fri, 24 Nov 2023 11:01:16 +0000 From: Simon Horman To: Jesse Brandeburg Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, Julia Lawall , Sasha Neftin , Marcin Szycik Subject: Re: [PATCH iwl-next v1 08/13] igc: field prep conversion Message-ID: <20231124110116.GH50352@kernel.org> References: <20231121211921.19834-1-jesse.brandeburg@intel.com> <20231121211921.19834-9-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-9-jesse.brandeburg@intel.com> On Tue, Nov 21, 2023 at 01:19:16PM -0800, Jesse Brandeburg wrote: > Refactor igc driver 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 in a later patch. > > @prep@ > constant shift,mask; > expression a; > @@ > -((a << shift) & mask) > +FIELD_PREP(mask, a) > > Cc: Julia Lawall > Cc: Sasha Neftin > Reviewed-by: Marcin Szycik > Signed-off-by: Jesse Brandeburg Reviewed-by: Simon Horman