Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3582971imc; Wed, 13 Mar 2019 23:58:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzYDJbyOQMgSZoI8p9hx1mwRZw+Ap9PckKZDZ8P+gf4a/jVG3FMMa2zsfHiI/o3SltPm5D X-Received: by 2002:a62:ed08:: with SMTP id u8mr47718140pfh.200.1552546720195; Wed, 13 Mar 2019 23:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552546720; cv=none; d=google.com; s=arc-20160816; b=EF2rNeMkY8gTnYNBaPWqykZ6B1j4KxmuZZj4f09WGiSlqX5l3hgwYqM5rOaITxueaX turyD7EiO1HVpDIW2XrFHoJWaOhm5wJE2vKRWKoQi9pc5jj8DZx5kQWDkz4ViL8uQrMX BYZPo0HP5tAsngtrTKJnlFsYGY4l9VcSGoewrHNtab3s+Ul7vZXy74UKvUomt9cw9c4l cHvHnoxEi9Jlz6ypO/l9hPYuM8B99+8XzD4O28iLte0HIcPKkNZfwb+YVrUyqWqzGSdj cl108/hOpJbiLoGbzki5FZwT0IJ8vhvKwBRjl5fqJAQD8OlJ1ea/18LOR9UKL6FS3Ccv Vx3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=wi+atB/2XymiOUQYERIAWKO9bUuoYvtS3mZMAviy7Uw=; b=MTCseavdvD2qyEDrOqlQOkc7mNydS7oGfHlDyE/GhrmoSOvFyfmkLU5HXA03vXqocU Mjp9XmbS7tvyqyaUSBuHOhCs6/duzsZPk0a3FodxaM26v2U3reD4OGQpKnqv+Bcy3XA8 fB+Aa+HAckNdPXtm0Le9D70iHIwBA+LevgxF1TR+SOVwOBkU6c2qv1aC2PxcLQhqqwC8 NlBzGbIFLllNrMQnHSzGVFAtIZoxqUIyox0TMvgYqsBnptykteLuVvP0RqZIXw263v64 jZRQrlWEzZy8Y3timuP9RPsuwP4Bshtt4q169DHom5JExX8JPSaddJZ4TZeKmrAK+6SH BVhg== 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 a98si13999818pla.267.2019.03.13.23.58.25; Wed, 13 Mar 2019 23:58:40 -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 S1726717AbfCNG5o (ORCPT + 99 others); Thu, 14 Mar 2019 02:57:44 -0400 Received: from 6.mo173.mail-out.ovh.net ([46.105.43.93]:45959 "EHLO 6.mo173.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726464AbfCNG5n (ORCPT ); Thu, 14 Mar 2019 02:57:43 -0400 Received: from player731.ha.ovh.net (unknown [10.109.146.76]) by mo173.mail-out.ovh.net (Postfix) with ESMTP id 5DB4BF9D5A for ; Thu, 14 Mar 2019 07:52:22 +0100 (CET) Received: from kaod.org (lns-bzn-46-82-253-208-248.adsl.proxad.net [82.253.208.248]) (Authenticated sender: groug@kaod.org) by player731.ha.ovh.net (Postfix) with ESMTPSA id 939E538B7730; Thu, 14 Mar 2019 06:51:35 +0000 (UTC) Date: Thu, 14 Mar 2019 07:50:55 +0100 From: Greg Kurz To: "Alastair D'Silva" Cc: Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Andrew Donnellan , Frederic Barrat , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 5/5] ocxl: Remove some unused exported symbols Message-ID: <20190314075055.6c4eb970@bahia.lan> In-Reply-To: <1dd6d24f3ee5a2029ee6fbb2890356197e881101.camel@au1.ibm.com> References: <20190227045741.21412-1-alastair@au1.ibm.com> <20190313040702.14276-1-alastair@au1.ibm.com> <20190313040702.14276-6-alastair@au1.ibm.com> <20190313101045.6712f156@bahia.lan> <1dd6d24f3ee5a2029ee6fbb2890356197e881101.camel@au1.ibm.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 18025094560251812171 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrhedugddutddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Mar 2019 13:23:21 +1100 "Alastair D'Silva" wrote: > On Wed, 2019-03-13 at 10:10 +0100, Greg Kurz wrote: > > On Wed, 13 Mar 2019 15:07:01 +1100 > > "Alastair D'Silva" wrote: > > > > > From: Alastair D'Silva > > > > > > Remove some unused exported symbols. > > > > > > Signed-off-by: Alastair D'Silva > > > --- > > > drivers/misc/ocxl/config.c | 2 -- > > > drivers/misc/ocxl/ocxl_internal.h | 23 +++++++++++++++++++++++ > > > include/misc/ocxl.h | 23 ----------------------- > > > 3 files changed, 23 insertions(+), 25 deletions(-) > > > > > > diff --git a/drivers/misc/ocxl/config.c > > > b/drivers/misc/ocxl/config.c > > > index 026ac2ac4f9c..c90c2e4875bf 100644 > > > --- a/drivers/misc/ocxl/config.c > > > +++ b/drivers/misc/ocxl/config.c > > > @@ -299,7 +299,6 @@ int ocxl_config_check_afu_index(struct pci_dev > > > *dev, > > > } > > > return 1; > > > } > > > -EXPORT_SYMBOL_GPL(ocxl_config_check_afu_index); > > > > > > static int read_afu_name(struct pci_dev *dev, struct > > > ocxl_fn_config *fn, > > > struct ocxl_afu_config *afu) > > > @@ -535,7 +534,6 @@ int ocxl_config_get_pasid_info(struct pci_dev > > > *dev, int *count) > > > { > > > return pnv_ocxl_get_pasid_count(dev, count); > > > } > > > -EXPORT_SYMBOL_GPL(ocxl_config_get_pasid_info); > > > > > > void ocxl_config_set_afu_pasid(struct pci_dev *dev, int pos, int > > > pasid_base, > > > u32 pasid_count_log) > > > diff --git a/drivers/misc/ocxl/ocxl_internal.h > > > b/drivers/misc/ocxl/ocxl_internal.h > > > index 321b29e77f45..06fd98c989c8 100644 > > > --- a/drivers/misc/ocxl/ocxl_internal.h > > > +++ b/drivers/misc/ocxl/ocxl_internal.h > > > @@ -107,6 +107,29 @@ void ocxl_pasid_afu_free(struct ocxl_fn *fn, > > > u32 start, u32 size); > > > int ocxl_actag_afu_alloc(struct ocxl_fn *fn, u32 size); > > > void ocxl_actag_afu_free(struct ocxl_fn *fn, u32 start, u32 size); > > > > > > +/* > > > + * Get the max PASID value that can be used by the function > > > + */ > > > +int ocxl_config_get_pasid_info(struct pci_dev *dev, int *count); > > > + > > > +/* > > > + * Check if an AFU index is valid for the given function. > > > + * > > > + * AFU indexes can be sparse, so a driver should check all indexes > > > up > > > + * to the maximum found in the function description > > > + */ > > > +int ocxl_config_check_afu_index(struct pci_dev *dev, > > > + struct ocxl_fn_config *fn, int > > > afu_idx); > > > + > > > +/** > > > > Two *s ? > > > > These are Sphinx formatted comments (similar, but not quite the same as > Doxygen). > Oh... should the other comments be converted to this format for consistency ? > > Also, this results in an ocxl_internal.h header file where only these > > three functions are documented... which looks a bit weird IMHO. Since > > these are ocxl internals, do we _really_ need to keep the comments ? > > I believe we should, it's a courtesy to the next person who has to work > in the area. > > There are more documentation comments coming in further series. > Fair enough. Reviewed-by: Greg Kurz