Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4250013pxb; Mon, 25 Oct 2021 00:03:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvSmvizYpD8MxfMmJNRH6i0lBCc+/pHJUv6v9RWSK2tpt3VmJ+0yxPxBcvw17wyUtujNZj X-Received: by 2002:a05:6402:152:: with SMTP id s18mr24690975edu.356.1635145409401; Mon, 25 Oct 2021 00:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635145409; cv=none; d=google.com; s=arc-20160816; b=uC6euu7+pL60O+ELJ+YudHLMo0quDTrIThNSc0G7jAxthew7kTSRgPb/ELbL0iwoNE Vn0lgdfdC1tNBeisD8LBRO59S/HsWvzZcAfv52qJBLbV34jAr/JFMoCOQ1uDn0GGPq/k GCmBdOttudJsE5bPsrqreX/Vpf6FVSKdtgr7kjnfWPWVfgkx59C7TzpCOqKlUaXTO68M QpQPeQSq/EUPJZmhiNr82WD0DzADLHjy3yjIwZbs7TXzt3IdjMdwtECKLfvMvWeK9NPC EzCgMb97SflCOpO9iPd1/6clFE/BvDwLLoUsVLN3JUCyAbDDflTueNIY4R1aWM5jnXlW 1C5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XH3xdtbLhapmmW0JYmN5pD0fjj0gtqEc7lDkeWFuh3o=; b=V/CICDaVtWUOcuOmpIZpvB8X3uzofM1Jj/GtO2G871SKguFqWtBopQlDmmOy7fEybI KXAsFHvduxfQvhRXwV9CT707Yx1jMUwifLnnt/FPv70NDZ/RcOo8zpkqOhlet9cpsPh/ lJxqrgovqku1d8gEXrT/6p5ANTtPtwL/bhiQi7ZKumg7maAHSvscHyzrpAK5NJfuoIkk Ps5PxZfr9CAuaL/f+WTJiXhfgP4R1CO6NhX2CtL1UDd3uuajn/HpK3fmdFvslykh+Xxb JwMSULxdr5pvKqyttNZ9fnIPIEGO63nwexGid/4vxydssdNV98A8A/X2A4F2clGGd8XP 4Ttw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=Yu51eIJf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w11si20297271ejq.513.2021.10.25.00.02.58; Mon, 25 Oct 2021 00:03:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=Yu51eIJf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231220AbhJYGdc (ORCPT + 99 others); Mon, 25 Oct 2021 02:33:32 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:48869 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230369AbhJYGdb (ORCPT ); Mon, 25 Oct 2021 02:33:31 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4419B5C0178; Mon, 25 Oct 2021 02:31:09 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 25 Oct 2021 02:31:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=XH3xdt bLhapmmW0JYmN5pD0fjj0gtqEc7lDkeWFuh3o=; b=Yu51eIJfHMCYnk01d/iAoa 724YShrQPbLtKdi0ukgyahPHDyYPYDQbjQ3r0wG9B90G/xYbi9KPIJ9i5Nf1ibWa TfwCz4el+keN0w/cBANLpr2mUgW9lGEIdUVy7n0vGJAyo7U6FGRoNRXYL3hEa14D h/T8JzCoi/9QsR5PL+j/gM9m64r4EhepbBQN6t/YZ3e6bA4iJAMg548HX98exKQU fc6yiuhKxOh+gmzuhR2/VKplv9nPzDe/jx2c0qAUme4UsWtdXQXVOkOC62gpRFjB 3VbacqHY5xLUWqm7dns1kFpGbyzMV4w7ZMDbtCms8Q2OoaiU46pqbeDPbJ87wCoQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefgedguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepkfguohcu ufgthhhimhhmvghluceoihguohhstghhsehiughoshgthhdrohhrgheqnecuggftrfgrth htvghrnheptdffkeekfeduffevgeeujeffjefhtefgueeugfevtdeiheduueeukefhudeh leetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepih guohhstghhsehiughoshgthhdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Oct 2021 02:31:07 -0400 (EDT) Date: Mon, 25 Oct 2021 09:31:03 +0300 From: Ido Schimmel To: Christophe JAILLET Cc: jiri@nvidia.com, idosch@nvidia.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] mlxsw: spectrum: Use 'bitmap_zalloc()' when applicable Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 24, 2021 at 09:17:51PM +0200, Christophe JAILLET wrote: > Use 'bitmap_zalloc()' to simplify code, improve the semantic and avoid > some open-coded arithmetic in allocator arguments. > > Also change the corresponding 'kfree()' into 'bitmap_free()' to keep > consistency. > > Signed-off-by: Christophe JAILLET For net-next: Reviewed-by: Ido Schimmel Thanks