Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31049830rwd; Thu, 6 Jul 2023 15:02:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlH7vIObKQ6jmS0CEnWq2X/P+6mfDR6hRxVpZnHKS2IqS1oOPh2fh/WRQ1QgJg9KFb1OCjT+ X-Received: by 2002:a05:6871:80a:b0:1a9:caa6:1337 with SMTP id q10-20020a056871080a00b001a9caa61337mr3828081oap.23.1688680970666; Thu, 06 Jul 2023 15:02:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688680970; cv=none; d=google.com; s=arc-20160816; b=EoBKoxrd+2s6F569l1QDTfnP4LgaqpU05bphl2V1eYHQxNxPi+K2iGNraJ9HyyKVDX 5VKeEnZzATjru1DEa8S+aFRoJUipFdSbS0BWrMRgPLIyehPkT7QyadmVd0bKugvbo2oL B/wtgQalEThH/KTBj3p8wzHC7afoqz04y9vEwwVU//6aTce8q/z1cLHkvSs4bdB7bE4X 5+ctzL0CvHU7ZUYzMDSfXKp32l5YujRe0w4BBCBJZmgW4NP0T1uN15QYnlhdk+SCvzeo GPFAcHqRofsidf7LqM2eHRDS9UXqmKxpkzjuTW36CB/X41K28j6coKbxFBdU3KuG/fFp 1HbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=apsCx/EFeWwzyiurRwGIOaRvS2oRweRFYfEbIucCThs=; fh=Sp8mu3/rxrVopAOk+HtMexkUFwQuBQ8/iiZsrvjMVLw=; b=DAJZFot3UN0wvrmVqdtheCwMs9KYrhL6K5tDo/1apK3DkLduWbr46A5W5LTiAqGCHw inyZ6LH5ZqGdmOyKFdFTLXQx+8qFlN0tnr9W+1g908u/tMpDR+goGTYEgZKYoJiWclLp hgupjLsKbXfsjlj1I8D9izlfk/SsES4SQUkyhscoE7FnoDhWOAoDlRndmjqJPft5KtwI WdaZ27TnF3ZKqcFmcDzR328lL7Nod5DxVgwZdae4db36HuPlFzEzP0IqIX7PrwRBtdCb tK48xNIXc3jwpUeNP/WAXliQb150UpK/7sCNkwzzAnyoVn1w3IgeZ2uDNrPrm26mkyf8 CM1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=0ZyvmHn+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020a17090a7c4600b00263f5a29bf4si558359pjl.20.2023.07.06.15.02.23; Thu, 06 Jul 2023 15:02:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=0ZyvmHn+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231820AbjGFVfF (ORCPT + 99 others); Thu, 6 Jul 2023 17:35:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbjGFVfE (ORCPT ); Thu, 6 Jul 2023 17:35:04 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EEE9FF; Thu, 6 Jul 2023 14:35:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=apsCx/EFeWwzyiurRwGIOaRvS2oRweRFYfEbIucCThs=; b=0ZyvmHn+DDaqx7mvnrogE4Cr/w SAtw+zEGo/6Tha7aickmvvUzoJGLHMXWwrjp4IIWaYxV4W/f4vrbaOYIJ44L71v8f41cHr+66oxBP 64uFad5GiPzj3G+HhteUbp8XHP8YYANrdI5aeFIwFIfpnDg+z2YbXVLjpF/MLfws0ypPJ78F8ekgg erK90oEN3Tj3oeijHKc7aXzh5UC9q/CBympsQ9zEKYiDHw/pKDACsHANCd2ZJyC2MjEugDXdN66Ci OHEWqyvaG9vbTLDsE39XkcrcFf8DCLnLgCFdRgxJ5Wf+7uwm+7EY3KyEk9YnAicfjMvlS/nLXM5xN AV+Kjjnw==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qHWcu-002k0y-2E; Thu, 06 Jul 2023 21:35:00 +0000 Message-ID: Date: Thu, 6 Jul 2023 14:35:00 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [RFC PATCH 2/2] fpga: bridge: fix kernel-doc Content-Language: en-US To: Marco Pagani , Moritz Fischer , Wu Hao , Xu Yilun , Tom Rix Cc: linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org References: <20230706142755.124879-1-marpagan@redhat.com> <20230706142755.124879-3-marpagan@redhat.com> From: Randy Dunlap In-Reply-To: <20230706142755.124879-3-marpagan@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HI-- On 7/6/23 07:27, Marco Pagani wrote: > Fix the following warnings issued by the kernel-doc script: > > drivers/fpga/fpga-bridge.c:99: warning: No description found for return value of 'of_fpga_bridge_get' > drivers/fpga/fpga-bridge.c:163: warning: No description found for return value of 'fpga_bridges_enable' > drivers/fpga/fpga-bridge.c:187: warning: No description found for return value of 'fpga_bridges_disable' > drivers/fpga/fpga-bridge.c:238: warning: No description found for return value of 'of_fpga_bridge_get_to_list' > drivers/fpga/fpga-bridge.c:268: warning: No description found for return value of 'fpga_bridge_get_to_list' > > - Extend the return description of of_fpga_bridge_get() to include the > case when try_module_get() fails. > > Signed-off-by: Marco Pagani > --- > drivers/fpga/fpga-bridge.c | 23 ++++++++++++----------- > 1 file changed, 12 insertions(+), 11 deletions(-) > > diff --git a/drivers/fpga/fpga-bridge.c b/drivers/fpga/fpga-bridge.c > index a6c25dee9cc1..0b76c67c50e5 100644 > --- a/drivers/fpga/fpga-bridge.c > +++ b/drivers/fpga/fpga-bridge.c > @@ -87,12 +87,13 @@ static struct fpga_bridge *__fpga_bridge_get(struct device *dev, > /** > * of_fpga_bridge_get - get an exclusive reference to an fpga bridge > * > - * @np: node pointer of an FPGA bridge > - * @info: fpga image specific information > + * @np: node pointer of an FPGA bridge. > + * @info: fpga image specific information. Those are not sentences. There is no reason that a period ('.') is needed to end those lines. OTOH, the maintainers can do as they like with it. The rest looks good. Thanks. Reviewed-by: Randy Dunlap > * > - * Return fpga_bridge struct if successful. > - * Return -EBUSY if someone already has a reference to the bridge. > - * Return -ENODEV if @np is not an FPGA Bridge. > + * Return: > + * * fpga_bridge struct pointer if successful. > + * * -EBUSY if someone already has a reference to the bridge. > + * * -ENODEV if @np is not an FPGA Bridge or can't take parent driver refcount. > */ > struct fpga_bridge *of_fpga_bridge_get(struct device_node *np, > struct fpga_image_info *info) > @@ -155,9 +156,9 @@ EXPORT_SYMBOL_GPL(fpga_bridge_put); > * fpga_bridges_enable - enable bridges in a list > * @bridge_list: list of FPGA bridges > * > - * Enable each bridge in the list. If list is empty, do nothing. > + * Enable each bridge in the list. If list is empty, do nothing. > * > - * Return 0 for success or empty bridge list; return error code otherwise. > + * Return: 0 for success or empty bridge list or an error code otherwise. > */ > int fpga_bridges_enable(struct list_head *bridge_list) > { > @@ -179,9 +180,9 @@ EXPORT_SYMBOL_GPL(fpga_bridges_enable); > * > * @bridge_list: list of FPGA bridges > * > - * Disable each bridge in the list. If list is empty, do nothing. > + * Disable each bridge in the list. If list is empty, do nothing. > * > - * Return 0 for success or empty bridge list; return error code otherwise. > + * Return: 0 for success or empty bridge list or an error code otherwise. > */ > int fpga_bridges_disable(struct list_head *bridge_list) > { > @@ -230,7 +231,7 @@ EXPORT_SYMBOL_GPL(fpga_bridges_put); > * > * Get an exclusive reference to the bridge and it to the list. > * > - * Return 0 for success, error code from of_fpga_bridge_get() otherwise. > + * Return: 0 for success, error code from of_fpga_bridge_get() otherwise. > */ > int of_fpga_bridge_get_to_list(struct device_node *np, > struct fpga_image_info *info, > @@ -260,7 +261,7 @@ EXPORT_SYMBOL_GPL(of_fpga_bridge_get_to_list); > * > * Get an exclusive reference to the bridge and it to the list. > * > - * Return 0 for success, error code from fpga_bridge_get() otherwise. > + * Return: 0 for success, error code from fpga_bridge_get() otherwise. > */ > int fpga_bridge_get_to_list(struct device *dev, > struct fpga_image_info *info, -- ~Randy