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 3FA94C61DF4 for ; Fri, 24 Nov 2023 11:01:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id F3D9B60B0B; Fri, 24 Nov 2023 11:01:25 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org F3D9B60B0B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1700823686; bh=iQlHegbiMUlN+xOnsoV2e9t1piPBuT9IWWYc0YfG48Q=; h=Date:From:To:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=1ZeqETNfVCBd7VC1PN0fH7IFzwP95aEyPMAvFSrb63A5sb7PW0lOvx6XrYptih0qN Tue7n8iswJU+/egD95XyVnBIVtL9rq2A/FgJ5BScUa794+KcooCUQnVCYJZhvm4/8T Ly8F4LA/OwZRl6JAnUF0V1JbOuPlXYW9km5hug+ZN+Q79ucVYMUr0AHouxcdvCSbCM k0mTq0BqQlkqPLu+EckH3V2iUUprGg/Ca0dWMkdV8JlJwoPWDdxkDSX5pMbbiL2d7Z f9zMhJ0oZ2hvzlmUylai2s4qu505LjS24kL6+c9QjP+9uC0/ykQGeui8SHyxemEUkk v2Z4d8UoFba0A== 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 3LCuFYROPgnw; Fri, 24 Nov 2023 11:01:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 17FB4614FF; Fri, 24 Nov 2023 11:01:25 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 17FB4614FF Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id BF4711BF83C for ; Fri, 24 Nov 2023 11:01:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 98AD6420F9 for ; Fri, 24 Nov 2023 11:01:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 98AD6420F9 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gSZHwo0RYf7g for ; Fri, 24 Nov 2023 11:01:23 +0000 (UTC) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by smtp4.osuosl.org (Postfix) with ESMTPS id F172D420F6 for ; Fri, 24 Nov 2023 11:01:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org F172D420F6 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 1DED9B83012; Fri, 24 Nov 2023 11:01:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 281B2C433C7; Fri, 24 Nov 2023 11:01:18 +0000 (UTC) Date: Fri, 24 Nov 2023 11:01:16 +0000 From: Simon Horman To: Jesse Brandeburg Message-ID: <20231124110116.GH50352@kernel.org> References: <20231121211921.19834-1-jesse.brandeburg@intel.com> <20231121211921.19834-9-jesse.brandeburg@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231121211921.19834-9-jesse.brandeburg@intel.com> X-Mailman-Original-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== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=lBgYXgIb Subject: Re: [Intel-wired-lan] [PATCH iwl-next v1 08/13] igc: field prep 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, Sasha Neftin , intel-wired-lan@lists.osuosl.org, Marcin Szycik 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: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 _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan