Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3935453pxb; Fri, 11 Feb 2022 11:01:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgJSbABAWBFWiJiRl/bInKD4v2wfde1IPshmrSlDe0LqtaFA+ujoLeeUBU6SAzTGP8e2Zs X-Received: by 2002:a05:6402:5c9:: with SMTP id n9mr3369897edx.207.1644606060215; Fri, 11 Feb 2022 11:01:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644606060; cv=none; d=google.com; s=arc-20160816; b=WkpXojQMjrbgoO9WVGaXatmYNX1Qk6+/o1FbCuUdqy9gv0+mu9yY4WMJ61/qDko3ZS 2tbRnqsjlw3hv5JKZUy95OnquSJakg1zyEUYsPJ3A1vrKlnh7tUT8Zbe2EJBjugWXtqK fQaOwj6zg6ntQ+Mr0JAMkPTtT5ZsKZTMyacuLGwPG1mJfkMPtPiDgwVvToE2HDlOxF17 6bWYdpyS82Z1vPl2jCJYgGtNODCXtwIGWxaefZeoPk4jv7zny3CKscWuJovsnJA5tlYR ELSpmfl9/G5IAJa89sjBk0pFQiVPhQQWtoOtEOac5FNhYIkIWwvZco0afdYYgNrixbrx OylQ== 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=Ujdmirxmv9J+xYKwu/KpZa9Pjtl6WCpcTWo64lQCL/Y=; b=TS3p0incVcFPI65igCNjFgL5/woRUm9PZRmVD6cB1UbvdT3+GSVYsf6a3NBP4xeWyc +LrkhOYm7laN2NiV82ev3PuUqkWkFVP+bzfZTIinnjUZvjo3lO/PQIANpW0LkvZZEBcT suqfQwj2YodAHBygYePRDIhRLdWn5LIwiT/vS3IgvY1e3gial4k0qYhDpVI/mEfd/yNc Ae0bdAhmPPrlkcitR73ldqfyoGX1ugsylwjMZ5dn19h6eqpjeXhPwcl4BCXez7W66I0H eKfxvXLywcoglCs1ShPysFGRnzTfFX3vtis34U/YPWvvmPXRmiJSRHrQnbEyhKkFSVYu 2VHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Iz5TYEtx; 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 bh4si17234836ejb.137.2022.02.11.11.00.09; Fri, 11 Feb 2022 11:01:00 -0800 (PST) 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=casper.20170209 header.b=Iz5TYEtx; 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 S1352520AbiBKSIT (ORCPT + 99 others); Fri, 11 Feb 2022 13:08:19 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343603AbiBKSIT (ORCPT ); Fri, 11 Feb 2022 13:08:19 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAB1013A; Fri, 11 Feb 2022 10:08:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=Ujdmirxmv9J+xYKwu/KpZa9Pjtl6WCpcTWo64lQCL/Y=; b=Iz5TYEtx4Jt5k1HufobAB3vhVM kyUQZAHhc44BGy8iRMMFPbUqCRDgMjTW6lkhbxOGkW5DGq0NX3yiYNQ0y2p+tfn19UYnhe1hPj1EL 7g7d/6c/JWeXkUJ0Y8LzXbor1Iwkcn92Ok4n3eUUJI5Kybv/bg6CwPZk+iV6B973mAkwamQYX8X2y r6H6wHv2SvaiQX+dRT1FkBcXGIkEsrXdpYHfwZpDB99ktTDEv7XRLBThydTeTc2RH79E0fFI0k/og zg6sta1tzg28uOw+Acx9WJRbBQXi86ZP6Vv3CNGNZE61iGGkBUbYfSS6InIdE9a2auGQsucfJWIZ6 DgUX2dKw==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIaL4-00AcW0-RO; Fri, 11 Feb 2022 18:08:11 +0000 Message-ID: <87137253-82a8-a070-2378-5e965987a34f@infradead.org> Date: Fri, 11 Feb 2022 10:08:06 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH V2] watchdog: Improve watchdog_dev function documentation Content-Language: en-US To: Daniel Bristot de Oliveira , Wim Van Sebroeck , Guenter Roeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org References: <30378a03e9cd9b5f6e92ec9bf512edc38bad8627.1644589712.git.bristot@kernel.org> From: Randy Dunlap In-Reply-To: <30378a03e9cd9b5f6e92ec9bf512edc38bad8627.1644589712.git.bristot@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 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 Daniel, On 2/11/22 06:30, Daniel Bristot de Oliveira wrote: > Adjust function comments to the kernel doc format. It > also adjusts some variable names and adds return values. > > No functional change. > > Changes from V1: > Change "Returns" to "Return:" (Randy Dunlap) > > Cc: Wim Van Sebroeck > Cc: Guenter Roeck > Cc: Randy Dunlap > Cc: linux-watchdog@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Daniel Bristot de Oliveira scripts/kernel-doc throws one warning: watchdog_dev.c:1194: warning: contents before sections which is a bug in the script IMO. I would just ignore this one. (see more below) Tested-by: Randy Dunlap Acked-by: Randy Dunlap Thanks. > --- > drivers/watchdog/watchdog_dev.c | 244 ++++++++++++++++---------------- > 1 file changed, 125 insertions(+), 119 deletions(-) > > diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c > index 3a3d8b5c7ad5..54903f3c851e 100644 > --- a/drivers/watchdog/watchdog_dev.c > +++ b/drivers/watchdog/watchdog_dev.c scripts/kernel-doc does not nicely handle a function that has no parameters (hence no @param descriptions) that is followed by a function description. Adding one line (I am not suggesting this as a patch) stops the warning: * @void: none This is the function that kernel-doc complains about (nothing wrong with it): /** * watchdog_dev_init - init dev part of watchdog core * * Allocate a range of chardev nodes to use for watchdog devices. * * Return: 0 if successful, error otherwise. */ int __init watchdog_dev_init(void) { -- ~Randy