[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BL0PR11MB312213B325230CEA3749B9A6BD85A@BL0PR11MB3122.namprd11.prod.outlook.com>
Date: Tue, 5 Dec 2023 06:15:26 +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 03/13] intel: legacy: field
prep 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 03/13] intel: legacy: field prep conversion
>
> 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 <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/e1000e/80003es2lan.c | 7 +++----
> drivers/net/ethernet/intel/e1000e/phy.c | 7 +++----
> drivers/net/ethernet/intel/fm10k/fm10k_pf.c | 3 +--
> drivers/net/ethernet/intel/igb/e1000_phy.c | 4 ++--
> drivers/net/ethernet/intel/igb/igb_ethtool.c | 3 +--
> drivers/net/ethernet/intel/igb/igb_main.c | 9 +++------
> drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c | 2 +-
> drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c | 4 ++--
> 8 files changed, 16 insertions(+), 23 deletions(-)
>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@...el.com> (A Contingent worker at Intel)
Powered by blists - more mailing lists