From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CC73C43381 for ; Thu, 14 Mar 2019 08:11:26 +0000 (UTC) Received: from lists.ozlabs.org (unknown [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5B8C121019 for ; Thu, 14 Mar 2019 08:11:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5B8C121019 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kaod.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 44KhHZ5n1SzDqNj for ; Thu, 14 Mar 2019 19:11:22 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=kaod.org (client-ip=178.33.251.53; helo=1.mo178.mail-out.ovh.net; envelope-from=groug@kaod.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=kaod.org Received: from 1.mo178.mail-out.ovh.net (1.mo178.mail-out.ovh.net [178.33.251.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 44KhFB4FrzzDqCG for ; Thu, 14 Mar 2019 19:09:14 +1100 (AEDT) Received: from player731.ha.ovh.net (unknown [10.109.146.137]) by mo178.mail-out.ovh.net (Postfix) with ESMTP id AC24D58677 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" 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 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Andrew Donnellan , Frederic Barrat , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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