Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3259449yba; Tue, 16 Apr 2019 07:51:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdSE5CC37rzOXraWL5JwfRRzWFRYn41nEcWQaygB9MNEIOQaeako50ftpmBIrJNDVhhAT/ X-Received: by 2002:a63:d5f:: with SMTP id 31mr74178234pgn.208.1555426271665; Tue, 16 Apr 2019 07:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555426271; cv=none; d=google.com; s=arc-20160816; b=ljYFMHL3JmxJyytUnYuqbILLG2U9idg+kVH2hxaa6cL50hZeiTJS4kQk7XQg8Dz4mh fPeq6YKuXgipE0AQ9PpRaZ6utJHTcIieUS+og1UT4oJPgh+a/mnuQIjSqJ3r2Xytk1Qu f0ERLhQWmiROPPhVxjQiUHTYIGsimAEjj1j9uiBamPfjOolfETCKyjmOKnWQ0oEMx+zy jd6ZVfW8M93cY7WFnCAmB272+ImPtwCYNWgXbyTTvviSIKNOLrXKn32oKIN+CVJlMQ/z fyMkT0zRCRgKdSyBk+w+UPvC25z2/Bkc0bs9Dwp1LvRJ05tBgYqEN5myiNNDE8T6avkT XeZA== 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=QNg7nGSqHva3LywEgHgjfo4Vy3uErJCyRa2McNULmuw=; b=zlfKP2tzCYVsjcp4wj0vSq3UPueTjBT7HGn4owQkNGudosLXLElglvmeMZLiYe/RSM eL3iMwse0t/Mf2D9fy/UNgZsJv3T/hIolsbqONl9e9pSSqtr1anh4Kkv+0NrnpODWbT+ gP5pYsa3pix8sgng7mpc7KfAxqwBWemWCnQOvzSNBDgRMl3NtUHIZP63y9nsI22mysAo H4Ry3q1nHcHFn6L2C4aCO0uHZ2wYmBO/pEYEZzSB8vlAUWDVTOaWYVNGZAb/P1GK3dF9 sV2lSVBbPaoiOKNm54SK+W6Xr9KxgV64HsJL2+Wrp16twJ6E+wHBkA8Wf8s/sTxlbd0C no5Q== 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 t14si31266952pfh.87.2019.04.16.07.50.55; Tue, 16 Apr 2019 07:51:11 -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 S1729558AbfDPOuG (ORCPT + 99 others); Tue, 16 Apr 2019 10:50:06 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6198 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728759AbfDPOuG (ORCPT ); Tue, 16 Apr 2019 10:50:06 -0400 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 From: Yue Haibing To: , , , CC: , , , YueHaibing Subject: [PATCH -next] xen-swiotlb: Make two functions static 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 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 static? 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_addr_t dev_addr, xen_dma_sync_single_for_device(hwdev, dev_addr, size, dir); } -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); } -void +static void xen_swiotlb_sync_single_for_device(struct device *hwdev, dma_addr_t dev_addr, size_t size, enum dma_data_direction dir) { -- 2.7.4