[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BL0PR11MB31221348C8722E9E1AE8A487BD85A@BL0PR11MB3122.namprd11.prod.outlook.com>
Date: Tue, 5 Dec 2023 06:33:57 +0000
From: "Pucha, HimasekharX Reddy" <himasekharx.reddy.pucha@...el.com>
To: "Brandeburg, Jesse" <jesse.brandeburg@...el.com>,
"intel-wired-lan@...ts.osuosl.org" <intel-wired-lan@...ts.osuosl.org>
CC: Julia Lawall <Julia.Lawall@...ia.fr>, "netdev@...r.kernel.org"
<netdev@...r.kernel.org>, Marcin Szycik <marcin.szycik@...ux.intel.com>,
"Brandeburg, Jesse" <jesse.brandeburg@...el.com>
Subject: RE: [Intel-wired-lan] [PATCH iwl-next v1 09/13] intel: legacy: field
get conversion
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@...osl.org> On Behalf Of Jesse Brandeburg
> Sent: Wednesday, November 22, 2023 2:49 AM
> To: intel-wired-lan@...ts.osuosl.org
> Cc: Julia Lawall <Julia.Lawall@...ia.fr>; netdev@...r.kernel.org; Marcin Szycik <marcin.szycik@...ux.intel.com>; Brandeburg, Jesse <jesse.brandeburg@...el.com>
> Subject: [Intel-wired-lan] [PATCH iwl-next v1 09/13] intel: legacy: field get conversion
>
> Refactor several older Intel drivers to use FIELD_GET(), which reduces
> lines of code and adds clarity of intent.
>
> This code was generated by the following coccinelle/spatch script and
> then manually repaired.
>
> @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 <Julia.Lawall@...ia.fr>
> Reviewed-by: Marcin Szycik <marcin.szycik@...ux.intel.com>
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@...el.com>
> ---
> drivers/net/ethernet/intel/e1000/e1000_hw.c | 45 ++++++++-----------
> .../net/ethernet/intel/e1000e/80003es2lan.c | 3 +-
> drivers/net/ethernet/intel/e1000e/82571.c | 3 +-
> drivers/net/ethernet/intel/e1000e/ethtool.c | 7 ++-
> drivers/net/ethernet/intel/e1000e/ich8lan.c | 18 +++-----
> drivers/net/ethernet/intel/e1000e/mac.c | 8 ++--
> drivers/net/ethernet/intel/e1000e/netdev.c | 11 ++---
> drivers/net/ethernet/intel/e1000e/phy.c | 17 +++----
> drivers/net/ethernet/intel/fm10k/fm10k_pf.c | 3 +-
> drivers/net/ethernet/intel/fm10k/fm10k_vf.c | 9 ++--
> drivers/net/ethernet/intel/igb/e1000_82575.c | 29 +++++-------
> drivers/net/ethernet/intel/igb/e1000_i210.c | 15 ++++---
> drivers/net/ethernet/intel/igb/e1000_mac.c | 7 ++-
> drivers/net/ethernet/intel/igb/e1000_nvm.c | 14 +++---
> drivers/net/ethernet/intel/igb/e1000_phy.c | 9 ++--
> drivers/net/ethernet/intel/igb/igb_ethtool.c | 8 ++--
> drivers/net/ethernet/intel/igb/igb_main.c | 4 +-
> drivers/net/ethernet/intel/igbvf/mbx.c | 1 +
> drivers/net/ethernet/intel/igbvf/netdev.c | 5 +--
> .../net/ethernet/intel/ixgbe/ixgbe_common.c | 30 ++++++-------
> drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 2 +-
> drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c | 8 ++--
> .../net/ethernet/intel/ixgbe/ixgbe_sriov.c | 8 ++--
> drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c | 8 ++--
> drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c | 19 ++++----
> 25 files changed, 123 insertions(+), 168 deletions(-)
>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@...el.com> (A Contingent worker at Intel)
Powered by blists - more mailing lists