Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp611759img; Wed, 20 Mar 2019 07:22:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxfa868pYri/FPBwvlOO7QGHQfjtojSJnVV6evn96InWjD9EmuSbvrxAqTSIZH8sP/YkZ4 X-Received: by 2002:a62:1193:: with SMTP id 19mr8081571pfr.82.1553091757943; Wed, 20 Mar 2019 07:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553091757; cv=none; d=google.com; s=arc-20160816; b=MRdObOsNV+5ikRz97/N4MhPanu49eg5VnZkMMKKV6zI2svOa3DPyBxiiTKhEUuy4eg K8lC5X68p2s4v7Ms2aaH69JlPb7AjkiII29QBX7Q2OA4zBs/PA6gsMs9U0XmEO3ixsr7 S9XiINg2PnsNufUv2TipNRUKGkvHhPxkjs8T9NLTOY3nSVRMOIKC8JSQv9KFoms3aU8+ y/KQ79Ff5khXZPA8Wk1TSBPSbkL0hJ1dGm67Dc0Sm5nxceOJ8m2NNFsYm7KiORu6Y3qL fb4tx14OsrEs5xH3QCsysyF6HZ6V5dVnFRpOkK6yNILBnMIRp6PiEtSDopHzBnHXVpW5 ZHGA== 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=WqQq0omn15w7+kjeIl7/m8CsKtm1kqOcv82YCCtOvl4=; b=GNO4Liy7spPv4JG5FeNdBKF5JrcnBiHBoLjCEYGe94DMlOkQlePFokOq0qf2zTO3LV m0MpQrbaZxBczF+jh2HaY8yE75duTUYqEU7a8HpgXKcAJG6ELD2ZpvVKpMY/2ijeBylH Nfcl5x58GSUyH9Vw92m9bXy3/KRlSvgFnCPdupBy9y2pp39et1DvuxOVpYQFgXnZFs// BqPHlIeUdj6iVWWWwUc6UrxyQ0mPiYWgSLOzvxHp2sU/RsVeS4oHansYHVORwd33HDPy UfyhzYHOoH4hUOC7dr7x4TpTS4foVQG9emV05zvE/zJAzruPv6SqG27JTnuqYT/mkgJ9 KuzA== 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 q65si1748094pfi.185.2019.03.20.07.22.22; Wed, 20 Mar 2019 07:22:37 -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 S1727392AbfCTOVO (ORCPT + 99 others); Wed, 20 Mar 2019 10:21:14 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:38932 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727144AbfCTOVO (ORCPT ); Wed, 20 Mar 2019 10:21:14 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 03EA57C24FE0564231B4; Wed, 20 Mar 2019 22:08:25 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.408.0; Wed, 20 Mar 2019 22:08:18 +0800 From: Yue Haibing To: , , CC: , , YueHaibing Subject: [PATCH -next] ntb: intel: Make intel_ntb3_peer_db_addr static Date: Wed, 20 Mar 2019 22:08:12 +0800 Message-ID: <20190320140812.5952-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 warning: drivers/ntb/hw/intel/ntb_hw_gen3.c:535:5: warning: symbol 'intel_ntb3_peer_db_addr' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/ntb/hw/intel/ntb_hw_gen3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ntb/hw/intel/ntb_hw_gen3.c b/drivers/ntb/hw/intel/ntb_hw_gen3.c index f475b56..c339716 100644 --- a/drivers/ntb/hw/intel/ntb_hw_gen3.c +++ b/drivers/ntb/hw/intel/ntb_hw_gen3.c @@ -532,9 +532,9 @@ static int intel_ntb3_mw_set_trans(struct ntb_dev *ntb, int pidx, int idx, return 0; } -int intel_ntb3_peer_db_addr(struct ntb_dev *ntb, phys_addr_t *db_addr, - resource_size_t *db_size, - u64 *db_data, int db_bit) +static int intel_ntb3_peer_db_addr(struct ntb_dev *ntb, phys_addr_t *db_addr, + resource_size_t *db_size, + u64 *db_data, int db_bit) { phys_addr_t db_addr_base; struct intel_ntb_dev *ndev = ntb_ndev(ntb); -- 2.7.0