From nobody Sat Apr 27 14:00:26 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1555426290; cv=none; d=zoho.com; s=zohoarc; b=S3YSoNG3LsLdjwYm6C+yb/Cu12jh6eHOJmk6Nb0TK1WqwOif/7DCcQ83+YsJS5sWfmoaeS5xIY8GjU3I6Ewr/Ov7C3pQmD+U9lq1NUTs7mVrOwLmoY8DF621Q8lXrV22ikws/7hkPNFmqXuBlXjL1B/wK4LBt5MeA7bXY4Vdsyk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555426290; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=AUIAEj6nR2sTUXgtFrPNKO8/wTJt6rO67ZdoXxDjStg=; b=U8eF4zEl8otplXewXpiHWZ1vpV/1MTGxDgkvhoCl7eAyjChf3scpmSFZHQIN5xnp+gqFDrXFbS3x4Sqw0793x4IfZlYkjTEh9pKHvgm6J6xSZOHfhnyNhQPyRPC6pha9fLUnCmbw+InB4D8mrH4St17cpSUPqYk1j9mXU9GBAfU= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1555426290331910.6378531782668; Tue, 16 Apr 2019 07:51:30 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hGPPX-0006eU-Ke; Tue, 16 Apr 2019 14:50:11 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hGPPW-0006eP-9q for xen-devel@lists.xenproject.org; Tue, 16 Apr 2019 14:50:10 +0000 Received: from huawei.com (unknown [45.249.212.190]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id eb31f9c4-6056-11e9-b06f-87afc11ac9b1; Tue, 16 Apr 2019 14:50:07 +0000 (UTC) Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id C5372D550CFA91E781BA; Tue, 16 Apr 2019 22:50:02 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.408.0; Tue, 16 Apr 2019 22:49:55 +0800 X-Inumbo-ID: eb31f9c4-6056-11e9-b06f-87afc11ac9b1 From: Yue Haibing To: , , , Date: Tue, 16 Apr 2019 22:49:50 +0800 Message-ID: <20190416144950.37952-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Subject: [Xen-devel] [PATCH -next] xen-swiotlb: Make two functions static X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: xen-devel@lists.xenproject.org, iommu@lists.linux-foundation.org, YueHaibing , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: YueHaibing Fix sparse warnings: drivers/xen/swiotlb-xen.c:489:1: warning: symbol 'xen_swiotlb_sync_single_for_cpu' was not declared. Should it be st= atic? drivers/xen/swiotlb-xen.c:496:1: warning: symbol 'xen_swiotlb_sync_single_for_device' was not declared. Should it be= static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/xen/swiotlb-xen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c index 877baf2..e741df4 100644 --- a/drivers/xen/swiotlb-xen.c +++ b/drivers/xen/swiotlb-xen.c @@ -485,14 +485,14 @@ xen_swiotlb_sync_single(struct device *hwdev, dma_add= r_t dev_addr, xen_dma_sync_single_for_device(hwdev, dev_addr, size, dir); } =20 -void +static void xen_swiotlb_sync_single_for_cpu(struct device *hwdev, dma_addr_t dev_addr, size_t size, enum dma_data_direction dir) { xen_swiotlb_sync_single(hwdev, dev_addr, size, dir, SYNC_FOR_CPU); } =20 -void +static void xen_swiotlb_sync_single_for_device(struct device *hwdev, dma_addr_t dev_ad= dr, size_t size, enum dma_data_direction dir) { --=20 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel