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 smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 3BB38C61DF4 for ; Fri, 24 Nov 2023 11:02:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id DBA5C6150C; Fri, 24 Nov 2023 11:02:39 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org DBA5C6150C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1700823759; bh=TCCSqShAfRdj/xEb1jLj4lIcX/O2QotTTII8q7QbCNY=; h=Date:From:To:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=nZDY6B8WqwCZAD5TNuKbYbaOph7BYNHv91xc5FslwbFEOO2w+wVCvuFORNdBqYiOE +xs6aDv7sA6aIJyE6HxH3ouszHGi3Pkeio0JMCmSSRMxtWWqI+yZhgx07UFPsYS+vW qhSqEL97nlEGtvGYyvmDjTEhowSjzqmX+vuIOtZgywDdKF3u2Tp4vbJ3F90FarEcaB +36Ylw1AY3UhGl4WXt249QwO/EHkPJOXnPRS/ckpTk6vNkteuz6l5ZCDEUy+4kTV5i Mn/+KNbe6WweF9E3IOq238B0XXwkEghFeE8vSqpAOHFKxtbgLnIs2PGBDpwHPO9fV9 tkh2eRay725Xg== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eqwlWmTf1CFE; Fri, 24 Nov 2023 11:02:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id E974561512; Fri, 24 Nov 2023 11:02:38 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org E974561512 Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B08511BF997 for ; Fri, 24 Nov 2023 11:02:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 9531541A13 for ; Fri, 24 Nov 2023 11:02:37 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 9531541A13 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mcqWG4uZksnL for ; Fri, 24 Nov 2023 11:02:36 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by smtp2.osuosl.org (Postfix) with ESMTPS id B1B9E401D2 for ; Fri, 24 Nov 2023 11:02:36 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org B1B9E401D2 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 0A18E62154; Fri, 24 Nov 2023 11:02:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 892BEC433C8; Fri, 24 Nov 2023 11:02:34 +0000 (UTC) Date: Fri, 24 Nov 2023 11:02:32 +0000 From: Simon Horman To: Jesse Brandeburg Message-ID: <20231124110232.GL50352@kernel.org> References: <20231121211921.19834-1-jesse.brandeburg@intel.com> <20231121211921.19834-13-jesse.brandeburg@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231121211921.19834-13-jesse.brandeburg@intel.com> X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700823755; bh=zyIkAtGTekyXjo1U/UaQ4AO1lJnChKX2oIfxsqjAqVQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JKRoHLs2zVpaB7cDoNeAK5wIOuEW1RbiWZRFpEvYrlsot7VYb2ysxLhUqelKOyHtq vG90+iowEjiqHV38YY34KAvmwFF42Pg0R8swSntfnmlnRmOuVKiuBZPOKwL5m8E0rv 7yA+9dd5a2S6xDnNi4l9frLtBv4jQ6wzaGXlElw/J6gXav79Zkyw81YpiuwwbrRiw/ XSVMauruz922Inyxr8Nspp495mpOuPebLg6irVkINkPvsmtBtzlLTg0Rkbd7B7FSe8 P7U+Nm0Jxw7CKDMlueRh01QMW4mOCgtTw2pVeMBh4l5D1usVAPpCbTF3eJAbtwdJ8j B5nfmMbtfuWgA== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=JKRoHLs2 Subject: Re: [Intel-wired-lan] [PATCH iwl-next v1 12/13] iavf: field get conversion X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Julia Lawall , netdev@vger.kernel.org, Marcin Szycik , intel-wired-lan@lists.osuosl.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" On Tue, Nov 21, 2023 at 01:19:20PM -0800, Jesse Brandeburg wrote: > Refactor the iavf driver to use FIELD_GET() for mask and shift reads, > 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. > > @get@ > constant shift,mask; > expression a; > @@ > -((a & mask) >> shift) > +FIELD_GET(mask, a) > > and applied via: > spatch --sp-file field_prep.cocci --in-place --dir \ > drivers/net/ethernet/intel/ > > Cc: Julia Lawall > Reviewed-by: Marcin Szycik > Signed-off-by: Jesse Brandeburg Reviewed-by: Simon Horman _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan