Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1447327img; Tue, 19 Mar 2019 07:51:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBQgnKp3lc4ztYLsatdoBKjc1gdsgYJKrHCiCZEK26VeZ3mly9/qaTMK0QLa1Pptd73IYQ X-Received: by 2002:a17:902:6b48:: with SMTP id g8mr2487061plt.21.1553007116890; Tue, 19 Mar 2019 07:51:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553007116; cv=none; d=google.com; s=arc-20160816; b=N8hdshFkw9ts4HYBqOhoRA7WDznpUJ4Jo2nu4Nl3TMBEAlatsQRr3ZKDft7rWIYjmo cz3eZruH8tqqp+UGTBdKUgJqNYW9syQKIWxD9RSJcLhRMEUpdcnxsSogY9jtdeKtCeT4 L/OXdF1/Ltnw3RmHMJ8pDCIEGio28N/0PIE2KBHaBDUDBZavnUOE3gFcCmNar5CryoTU FF8uXT5tcfTcLUbUYnv5q5YnIml+n/TRATR42awrNcjiy2liXNP3MqqZULbMT+m0cbhZ 9PviIqoAnuYoSgsDwazjxwdbhMaSbKUQpbTaYUgbl5qty07htup5XoxloMmge5/gTFiH PNig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=Xb3aUKIV1gyLZlSmRVon12B8eEaxrKmwP1K9N9S+ObU=; b=BfEecmMhsyfyUrR6dqKt57IocNoaDomB92Z7t/RumU1Y6X5z3a9ift9Cr1UD7AUq6d TMrDBKSr/8xDG2irOPIAJUYlsf6Fv+MVuFyLbQaPR0OumqM4y0gVlkgB0Eg4xb1u9M8w YOsZj/GZFvwWhTqyjQe0NnMbHUkz8ILWkTcT5Z7+/0EWHY6GGlEO2W1/ykRbvvUIYqCQ l5daIpa7mhoDaP/t/fotunDGcWLcRwbFudXyhp/sZfalwu+xR1O8StjNJsD9+fnyEPxV 4EDXJ1YytROLhlzMmb7j+E2aEZtH+sruPldOG9FhXnh4bJzLDM8o4GE3YYL2AD8nJv+E wJ7w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q19si11174897pgv.289.2019.03.19.07.51.41; Tue, 19 Mar 2019 07:51:56 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727520AbfCSOu5 (ORCPT + 99 others); Tue, 19 Mar 2019 10:50:57 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:52772 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726466AbfCSOu4 (ORCPT ); Tue, 19 Mar 2019 10:50:56 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id D22A8398B73B5E98FBEF; Tue, 19 Mar 2019 22:50:52 +0800 (CST) Received: from huawei.com (10.175.113.133) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.408.0; Tue, 19 Mar 2019 22:50:51 +0800 From: Wang Hai To: CC: , Subject: [PATCH] vfio/spapr_tce: Make symbol 'tce_iommu_driver_ops' static Date: Wed, 20 Mar 2019 02:47:23 -0400 Message-ID: <20190320064723.46604-1-wanghai26@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.113.133] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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, -- 1.8.3.1