Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2913949pxb; Mon, 18 Oct 2021 04:42:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3AKBJiPIoxqB3YACXTcraHWl8TOG8wXwLEhaoAzBE+zX5y1LwUfE4R1wKgJA9jtA2fyI3 X-Received: by 2002:a17:906:4d19:: with SMTP id r25mr28521435eju.264.1634557330622; Mon, 18 Oct 2021 04:42:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634557330; cv=none; d=google.com; s=arc-20160816; b=IsrkA+NBAzfrFmX2DwL2OGRB0u+i/GCvKjmF/OJFR2jV4aOAsfg51l5tLLhUxCuELf BIrMGVWrmYgbtsSGOGpA/Fv84jWLCArT6TXTsTPRHAC0QszvFmwB85fDKDmlU5ws1PE7 TGeG2Z4N4avkBTL3FOVLXCi/WwiHxxuYv83bQ70C4l8LDc9Rk8GGaB/VcAVmAZFUlVzK uGvvRblDkkBmNJaFQCWUcg0vYK4rJr87wd7QZEp/ERFYnzxRKYMK7o99sgdzjBQ1+tfE Hxz8o3brVIjZ9zklAU2JqdE241dRNq6amchBqBcs4XJFPhNCu+T+u9lA4heHL9Q8lr/n aWdg== 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; bh=crvFhC7yHfvsQz0eRWVuy3aN2feChMo4x9rUoQsWuyA=; b=LJ+Q2fzCUQ77QEghrtUK9gAP6J5bj7Aep+79CNwCNMGhr8vMPaPGtBsLtNBI7wBls9 MQ7CHE5Ugdy/dwEpk5Ri0nVkoTsJRhJhWnLBvHZ2jTTvXMiNRYhCvCMc6oKjfUeb5Rpy qsmtySd3uQBJatBw7+iw0Yplh2Whhk7VcCxFPopPw60W7ji26sXz6f3Oe/7BRZTyaKNK /VoZOAinyTYuUN0Np8kFMgwCvCd0Lcakn0VM3dhSNCXyNaByI9N3OFT4LMwkFYOIEEPh AHvFuOCAnl9qQmxeaf8jRIw4GsRAtd6RF9PS23X07WFHbixhYWdtbrx8Dp3XPR2vxzxe MrCw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 13si20670448ejf.489.2021.10.18.04.41.47; Mon, 18 Oct 2021 04:42:10 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231337AbhJRLmP (ORCPT + 99 others); Mon, 18 Oct 2021 07:42:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbhJRLmP (ORCPT ); Mon, 18 Oct 2021 07:42:15 -0400 Received: from theia.8bytes.org (8bytes.org [IPv6:2a01:238:4383:600:38bc:a715:4b6d:a889]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 043DDC06161C; Mon, 18 Oct 2021 04:40:03 -0700 (PDT) Received: by theia.8bytes.org (Postfix, from userid 1000) id BC604694; Mon, 18 Oct 2021 13:40:00 +0200 (CEST) Date: Mon, 18 Oct 2021 13:39:57 +0200 From: Joerg Roedel To: Christophe JAILLET Cc: thierry.reding@gmail.com, vdumpa@nvidia.com, will@kernel.org, jonathanh@nvidia.com, linux-tegra@vger.kernel.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] iommu/tegra-smmu: Use devm_bitmap_zalloc when applicable Message-ID: References: <2c0f4da80c3b5ef83299c651f69a563034c1c6cb.1632661557.git.christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2c0f4da80c3b5ef83299c651f69a563034c1c6cb.1632661557.git.christophe.jaillet@wanadoo.fr> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 26, 2021 at 03:07:18PM +0200, Christophe JAILLET wrote: > 'smmu->asids' is a bitmap. So use 'devm_kzalloc()' to simplify code, > improve the semantic of the code and avoid some open-coded arithmetic in > allocator arguments. > > Signed-off-by: Christophe JAILLET > --- > drivers/iommu/tegra-smmu.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) Applied, thanks.