Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp448437yba; Wed, 3 Apr 2019 11:54:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6n8LmuG7H8ye2d2p+xGf7WMAPSFTYFVAonDFx0nyIOBpJHUcBp3rbcAM4me/fb9oYqAjp X-Received: by 2002:a17:902:9a89:: with SMTP id w9mr1673260plp.126.1554317639946; Wed, 03 Apr 2019 11:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554317639; cv=none; d=google.com; s=arc-20160816; b=0Aa2HQns6aOm7jInNPs5E5+xMahHt0bmSzws1LuwLhzVwvIjEaXtII/OlCj23hvs5z o2MPyql07SWFT48N3qb5s4znLOgC/dxuH15xLQ1+GaaZiRv7syP6mBwWKmH+HwBDEPi0 1kXMCCjzozDxcrDt3UkEWoWTlyURZf8grcnazJr4J0SrnT/lNW19glu11skGZQhu6aEu nI7fyhDBIqSfDNUF3PuzsSHPiwx7EThO20Ylu+UpI+C3sPALyodA1KF07D/PFT+F8bFh gpASeLcuroWE19AMZtv5WlebVPpNXRe/c3TGmcs5tSqiP0YQAHEHdFcHl7fZwElUDWta SWRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=pXoKa9AS9OzB5yxuUmQ/TyjbQgdVgsbxcdnXhSim1g4=; b=zF6iUdbueSkLP2/A8F3p2B90Lpe9KPGMlQ4nnnFFJ4dn7ozyywawAizQ0cETN3UdaY mw90hDgzucr+7lb+0+9gbd2a/6G4W3v/PgsodEfcg1GxoBm4S8DR1YY0TPnuK9xzN8WK OC1/lyZjMqrsfYu/zrhQaZfM6SNdK1coiHIt56OxAUAIse4ZMQd6bhKWeKuutvr2Kp/4 EFELUjV8yftGdhYhKlVV0iSgKhOB7BQ2mMchSHDlK4ymPGEa+Qz0ch1r6ULfAHln8uZu P/aOATx19FdcAUF2sJrBJMlvqlFAFyEa6bOydQNfLXQVaImjOE08QeRYK6Tm0TP6B1VE Q8sg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v24si14143359pgi.286.2019.04.03.11.53.44; Wed, 03 Apr 2019 11:53:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726785AbfDCSwX (ORCPT + 99 others); Wed, 3 Apr 2019 14:52:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50574 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726168AbfDCSwX (ORCPT ); Wed, 3 Apr 2019 14:52:23 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 787C230715CA; Wed, 3 Apr 2019 18:52:23 +0000 (UTC) Received: from x1.home (ovpn-116-99.phx2.redhat.com [10.3.116.99]) by smtp.corp.redhat.com (Postfix) with ESMTP id 14AE06012C; Wed, 3 Apr 2019 18:52:23 +0000 (UTC) Date: Wed, 3 Apr 2019 12:52:22 -0600 From: Alex Williamson To: Wang Hai Cc: , Subject: Re: [PATCH] vfio/spapr_tce: Make symbol 'tce_iommu_driver_ops' static Message-ID: <20190403125222.021d0908@x1.home> In-Reply-To: <20190320064723.46604-1-wanghai26@huawei.com> References: <20190320064723.46604-1-wanghai26@huawei.com> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Wed, 03 Apr 2019 18:52:23 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 Mar 2019 02:47:23 -0400 Wang Hai wrote: > Fixes the following sparse warning: > > drivers/vfio/vfio_iommu_spapr_tce.c:1401:36: warning: > symbol 'tce_iommu_driver_ops' was not declared. Should it be static? > > Fixes: 5ffd229c0273 ("powerpc/vfio: Implement IOMMU driver for VFIO") > Signed-off-by: Wang Hai > --- Applied to vfio for-linus branch for v5.1 with Alexey's R-b. Thanks! Alex > drivers/vfio/vfio_iommu_spapr_tce.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/vfio/vfio_iommu_spapr_tce.c b/drivers/vfio/vfio_iommu_spapr_tce.c > index 8dbb270..6b64e45 100644 > --- a/drivers/vfio/vfio_iommu_spapr_tce.c > +++ b/drivers/vfio/vfio_iommu_spapr_tce.c > @@ -1398,7 +1398,7 @@ static void tce_iommu_detach_group(void *iommu_data, > mutex_unlock(&container->lock); > } > > -const struct vfio_iommu_driver_ops tce_iommu_driver_ops = { > +static const struct vfio_iommu_driver_ops tce_iommu_driver_ops = { > .name = "iommu-vfio-powerpc", > .owner = THIS_MODULE, > .open = tce_iommu_open,