From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="WVU53oZY" Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F41311F for ; Tue, 5 Dec 2023 03:17:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701775026; x=1733311026; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=H271sEIBAGP5MA7yccwYLYdOp2ywSPd2T2VYfsYelW8=; b=WVU53oZYk3yfTs4+CJloP+K79XLqnWkr6fmI3rj0PZ0FfV1eBvQvx/uV iB7xW4wPXIvLd1SWIs3C7FekuOUw+r3MfI8UxAfOzjXJ6VHeoDdsrSEwL nqV67mtWGDi1gx1IDrUh/msYh0/ghO5TeHscG0uEAqserEIKIujpfl75r nfx0DdI4wSlkQkELJz1HNtnS6p8dkut9s17+YXevklCViwepfPay0T7Ex U8gsAGyFaB34F4FY8/W3UWFnDDDKl+NFJ/s7ysCUUuoCi1V5Xr5HjL8Jb /TIPpWBhXZUDTnBO/e8afm48G4cFnY7OAHMBXpdzYe0cuIoMbzC3HhOWg g==; X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="397775470" X-IronPort-AV: E=Sophos;i="6.04,252,1695711600"; d="scan'208";a="397775470" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2023 03:17:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="841421178" X-IronPort-AV: E=Sophos;i="6.04,252,1695711600"; d="scan'208";a="841421178" Received: from naamamex-mobl.ger.corp.intel.com (HELO [10.214.215.245]) ([10.214.215.245]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2023 03:17:02 -0800 Message-ID: Date: Tue, 5 Dec 2023 13:16:41 +0200 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [Intel-wired-lan] [PATCH iwl-next v1 08/13] igc: field prep conversion Content-Language: en-US To: Jesse Brandeburg , intel-wired-lan@lists.osuosl.org Cc: Julia Lawall , netdev@vger.kernel.org, Sasha Neftin , Marcin Szycik References: <20231121211921.19834-1-jesse.brandeburg@intel.com> <20231121211921.19834-9-jesse.brandeburg@intel.com> From: "naamax.meir" In-Reply-To: <20231121211921.19834-9-jesse.brandeburg@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/21/2023 23:19, 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 > --- > drivers/net/ethernet/intel/igc/igc_main.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Tested-by: Naama Meir