Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp660988img; Wed, 20 Mar 2019 08:18:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrDm7Xw0OFS1a2UEMfAsU0/5QzvGCp170irHlxGKl2mZGW1t7+ThvW7T0ArrF8v9gx+RRy X-Received: by 2002:a17:902:2989:: with SMTP id h9mr32259859plb.26.1553095113613; Wed, 20 Mar 2019 08:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553095113; cv=none; d=google.com; s=arc-20160816; b=sKQB/f2mMcnZ5YcR3miZMnPp8+jBtq2QyVO8OAHibwwgvairXTzOZZDIqGauxF1MiX QFjmqz7oFVsbvwcI7SfAvoRbFP4NpbziqbCSWTJi1OwW+HOjq2j6MwbPbcctgL5NaiVe HOvGg2oVSqvII5aO9egbZFjbScvaiZLhVdzqCp0jKWFRYQLBMpxVg1TjRv5LqeVzp5Tc szsGqpZ4bQfBq/di/mlkwqineJJnLk96LfzAczD7pnoQ80GO6KlR3O+qfuzxDoy0Ufdn /3BW9M6CTpguSKGLmGAq00ERCiNweHTLENb3nr1m6No+H8+912a43Q4u5w0q1QD7N4LD wV6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OhLRzKALkL3nGCjb3PwqNOmA2gedhLWmXCa0Qs6Xno4=; b=VzZXbDT139wOi73ebBNN9ONJ7Wkm+lYi8PhKnWKOwZP/24rhI+sMquEJ3UyUM5D7JV xz/2eP8oNSd49ctmJ/+elJNyH+nW0S6HwNBNNtY8OlyWN9sVlqZVXQxfZUmuMJPWQox+ XV7q2mBJ1747x5R6+ZKYnWFlXvysm8i8xNhXb/Uz9h8YswRHJQHxujBA2TPEjX/UYo0T ZPEuEbYBvemSqVZs7i2EeQZkrSMGyXxtH2kWsJX4/LH802mzfvfIhrQbMS8d4fgrU5Uz aPsf/ewakZQoKKdM0xCfn4CQCe5ACm0+OMoM2Io4OdXsanXtmnXOCq/xJBHWMCOjd69P jxkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kudzu-us.20150623.gappssmtp.com header.s=20150623 header.b=RoHc0M+m; 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 t18si1891767pgu.369.2019.03.20.08.18.17; Wed, 20 Mar 2019 08:18:33 -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; dkim=pass header.i=@kudzu-us.20150623.gappssmtp.com header.s=20150623 header.b=RoHc0M+m; 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 S1727490AbfCTPRd (ORCPT + 99 others); Wed, 20 Mar 2019 11:17:33 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:36965 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727372AbfCTPRc (ORCPT ); Wed, 20 Mar 2019 11:17:32 -0400 Received: by mail-yw1-f65.google.com with SMTP id w66so2281553ywd.4 for ; Wed, 20 Mar 2019 08:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kudzu-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=OhLRzKALkL3nGCjb3PwqNOmA2gedhLWmXCa0Qs6Xno4=; b=RoHc0M+mP1OLL2NFx7yn0/QZP0q9J4PSXJCspDpu2GvQy80YCp+vHgtbaCoGul+3P+ Rmdypv9kb+z8+SBV8PNgLm9H+Diuky8488orR8L0rA4iGBtKmBdSpWP8D+8sKNWBh6JQ RYJkDl6deB3XivuEVx+EDKilrJGInJIGZs8uOsKSL0+IHhuGmS5vxe/Ef5+cv+8qaaw7 wkxZKtwmn2YJuoAkmBKq4Ec/dHdjoYZ17k17PonRqx+W0Rv68LJZBnhDaqNd1yZ38mXr hjxcBvunvGMk9KlXOc4FWbVu/7eB2VrNa2XTNPDLX9KymLPPhWkznZenwHbwjx+77mIm Wuaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=OhLRzKALkL3nGCjb3PwqNOmA2gedhLWmXCa0Qs6Xno4=; b=oHhSurLdvABU166fnX4CMN7Wntrpn3ynp9H6Ci/vbhN9TpV5655ViUJ1YAF8mJhgpK WCTXrDtP192fx1Ewiewxwpu9H37YnR9E7ocYAh4KORXJjtsPV4GbEJ+MRa2rKYXPPaOz YXIZ/vhpziwwvONr6aILr8ffcBeS65uDB7dcgYKg2QMSHemlA5gk5TfA4eOX1g1+o7lO n8ni+gDEvBRWztiNJ/s6vhVQwGQoA15AfN8X+pWXpqOqP4HHaOS/eipZgZhXzzf+LZ9D djjcIv6OX0e1ZgBVF9z2dTIdQYOSOg6275w77eesW7arNtUzP2KJOMvrrDVP/CpEvhjv DQ/w== X-Gm-Message-State: APjAAAUJUSiBdLdAx3p5VGWLrJQ5FZh9C5/y93Iwh/NZoGGYXN02+opC y+oqSaec0hLhLP9sVWGo3G7bSw== X-Received: by 2002:a81:2209:: with SMTP id i9mr7365425ywi.293.1553095051413; Wed, 20 Mar 2019 08:17:31 -0700 (PDT) Received: from kudzu.us (76-230-155-4.lightspeed.rlghnc.sbcglobal.net. [76.230.155.4]) by smtp.gmail.com with ESMTPSA id f185sm972052ywf.18.2019.03.20.08.17.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Mar 2019 08:17:30 -0700 (PDT) Date: Wed, 20 Mar 2019 11:17:29 -0400 From: Jon Mason To: Yue Haibing Cc: dave.jiang@intel.com, allenbh@gmail.com, linux-kernel@vger.kernel.org, linux-ntb@googlegroups.com Subject: Re: [PATCH -next] ntb: intel: Make intel_ntb3_peer_db_addr static Message-ID: <20190320151728.GA19781@kudzu.us> References: <20190320140812.5952-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190320140812.5952-1-yuehaibing@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 20, 2019 at 10:08:12PM +0800, Yue Haibing wrote: > 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 Looks good to me. Added to the ntb branch, Thanks, Jon > --- > 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 > >