Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2648123pxb; Mon, 31 Jan 2022 00:48:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5gvFuxLoFOUKLWpWy/SXXUV8OdcWVzeo6wpHMRhWtZVc+LW8koytoIy1MBdurqO7u/ypV X-Received: by 2002:a17:907:608f:: with SMTP id ht15mr16301350ejc.484.1643618935239; Mon, 31 Jan 2022 00:48:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643618935; cv=none; d=google.com; s=arc-20160816; b=BH3ERlzOWGA8CfOZwBd4XPd2xcFsG25UsD7WBYbLqzYhuHx6OEgCm7IfWRuCM74HmP 00q/zBOxdTip3tpEypayTD9+AjS+eBilDGL9ovZdU6CLbmw7NFTePaLkTtypDI81iC1a SxcToIf3EKwmd9C7dUUMt0ltO7gcdFZaVesj31XPo+q4y+sOIPrdpNrBiWJDzlqRki3T wVPjBME9XHtCkAohEws7i3qRQZh/vh8x79SpXYJq3CvPHaPUP2lZsuhfhfTjjxncj8BU jDX1nSkk1eucXoJuXDl0HLsu3xMb3Q8xMxBqBgp2b4lY8pslC3C/LAtHc3XFuvcMX0D5 kfww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=t6AdCKfcvmHQEe6azLpxEUEDSept7eeeFjd7rUFQIH8=; b=xlUwq47ifIanD4pEcx4LcmcTskQpwvLB0r879yh+tIsKjf19qOlff7yRel0p/Z5kSk kelO/SEbwUNALivxul/Mlg3VE7L2zQjeGmCVglf28HMlGC0X9tWoU8e80qp1CCYsE/kf N36A5uktdKunT6CozUUOiZXbavmzLKLG5QBDU4FRcfvjlSIeKVO4qI1cV2uKMxuMo/Ee 8IZmduzDu7Gksd9wUb2s3M2+wiaDTuPYrC5+G9z9YuqoiMhycSMM/65vLa6vaHS1iKMA J7Vxk/a2LEYBxq++nACwSZI+6GPKrS4Xna93nwGO2rDl8bkyXITLiElI2+OLNICNUU5k A9yw== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f26si7436483edj.456.2022.01.31.00.48.31; Mon, 31 Jan 2022 00:48:55 -0800 (PST) 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236956AbiA1Lc7 (ORCPT + 99 others); Fri, 28 Jan 2022 06:32:59 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]:4544 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236647AbiA1Lc5 (ORCPT ); Fri, 28 Jan 2022 06:32:57 -0500 Received: from fraeml738-chm.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4JlZvw5n9Sz67w0f; Fri, 28 Jan 2022 19:28:28 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml738-chm.china.huawei.com (10.206.15.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Fri, 28 Jan 2022 12:32:53 +0100 Received: from [10.47.26.192] (10.47.26.192) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Fri, 28 Jan 2022 11:32:52 +0000 Subject: Re: [PATCH] iommu/iova: Separate out rcache init To: Robin Murphy , "joro@8bytes.org" , "will@kernel.org" , "mst@redhat.com" , "jasowang@redhat.com" CC: "xieyongji@bytedance.com" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , Linuxarm References: <1643205319-51669-1-git-send-email-john.garry@huawei.com> From: John Garry Message-ID: <5ac3a678-3126-edd9-cb23-72c05f3dcd34@huawei.com> Date: Fri, 28 Jan 2022 11:32:16 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.26.192] X-ClientProxiedBy: lhreml713-chm.china.huawei.com (10.201.108.64) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/01/2022 17:00, Robin Murphy wrote: > As above, I vote for just forward-declaring the free routine in iova.c > and keeping it entirely private. BTW, speaking of forward declarations, it's possible to remove all the forward declarations in iova.c now that the FQ code is gone - but with a good bit of rearranging. However I am not sure how much people care about that or whether the code layout is sane...