Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp663928img; Wed, 20 Mar 2019 08:21:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwDYLjL4lGtygRQgP0hRmBR1gRm7UR5WmmJb1XODA9ciSB0b72ZHQwPDFFO58K401xeM8i X-Received: by 2002:a63:6c01:: with SMTP id h1mr7917787pgc.330.1553095317157; Wed, 20 Mar 2019 08:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553095317; cv=none; d=google.com; s=arc-20160816; b=XeUGoUccPLlf3z6a0hdNHkE1YtG/+F0e8IV69CCn+j6u/2DHICXOQ3nRRug47CIHxa qztxJE+fivVydCtpXFsdKyOeJGF+BZMsX7Vi4+QsSgD4ayB3iZARWmlJzGjBWMZ5hxcs hlkEjjzUTM+Te35hp9BnfL+Wv7FS7eteaERjqVpJecita/5HZwN2LevE1qoBy88Df9Jh 2S1gYCwxxfUYtpCjTRr1AXXjkBvLeMoYVDcx/PqzvXw4IHCMa7Gk9kLYLiQ6420rdnq9 xhn+RbIOm5iTW/+XpJhFaCucaShvmVtQ46q0Yj5MZU9eTe/qE6el4fZZXPLwu1/URL+R wZ3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=MIuiISxv/mVybxndf+SyyyKAZ/2kr6hpRRj+f37qER4=; b=IuHhYiuEyOur1ZSPIW4574Fd+N70ImoNjQiMJc8XAOe16wW/VizMfrQ5jK7SbzYFZh k1GOjxh1ZX+DVDf3gGO81/CCN9S81bcy9SypCIUHgH3kwzji+yYkmaZp/QllmWOc4c4Z SKqKdlL/WUsKCjlxgusMoQLYJhpuyfoxOTyIh0WzIT9G4SdyFW9cd/CUXlf8oTi4RB3v n2EMz7pbmf3PhZ7TE+YBS4tt1IZhozRI2NPNvoby0PtvxEJ1Qz/mETEfnxmAJ0K7dcaz MIBAtSR0cmuOXWFbNeYV//M5oqu56GQnyOCnx/MD02ec0eUkRqztY8K8VFWWM80ihNyB mv+Q== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t18si1891767pgu.369.2019.03.20.08.21.40; Wed, 20 Mar 2019 08:21:57 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727192AbfCTPUp convert rfc822-to-8bit (ORCPT + 99 others); Wed, 20 Mar 2019 11:20:45 -0400 Received: from mga04.intel.com ([192.55.52.120]:60179 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726846AbfCTPUp (ORCPT ); Wed, 20 Mar 2019 11:20:45 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Mar 2019 08:20:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,249,1549958400"; d="scan'208";a="127080834" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga008.jf.intel.com with ESMTP; 20 Mar 2019 08:20:44 -0700 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 20 Mar 2019 08:20:44 -0700 Received: from fmsmsx117.amr.corp.intel.com ([169.254.3.142]) by FMSMSX110.amr.corp.intel.com ([169.254.14.3]) with mapi id 14.03.0415.000; Wed, 20 Mar 2019 08:20:43 -0700 From: "Jiang, Dave" To: Yue Haibing , "jdmason@kudzu.us" , "allenbh@gmail.com" CC: "linux-kernel@vger.kernel.org" , "linux-ntb@googlegroups.com" Subject: RE: [PATCH -next] ntb: intel: Make intel_ntb3_peer_db_addr static Thread-Topic: [PATCH -next] ntb: intel: Make intel_ntb3_peer_db_addr static Thread-Index: AQHU3yZ3uGDKLKo0d0SBvFbL1g+z5aYUonfw Date: Wed, 20 Mar 2019 15:20:43 +0000 Message-ID: <112A412BB11A1242B37129D931BCE5348445D71E@fmsmsx117.amr.corp.intel.com> References: <20190320140812.5952-1-yuehaibing@huawei.com> In-Reply-To: <20190320140812.5952-1-yuehaibing@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.1.200.107] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Yue Haibing [mailto:yuehaibing@huawei.com] > Sent: Wednesday, March 20, 2019 7:08 AM > To: Jiang, Dave ; jdmason@kudzu.us; > allenbh@gmail.com > Cc: linux-kernel@vger.kernel.org; linux-ntb@googlegroups.com; YueHaibing > > Subject: [PATCH -next] ntb: intel: Make intel_ntb3_peer_db_addr static > > 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? For now yes. Thanks! Acked-by: Dave Jiang > > 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 >