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=-15.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham 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 EB63BC433FE for ; Mon, 7 Dec 2020 08:17:03 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 73377229C6 for ; Mon, 7 Dec 2020 08:17:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 73377229C6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A05E889E50; Mon, 7 Dec 2020 08:17:02 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9212789E50 for ; Mon, 7 Dec 2020 08:17:00 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 1B8AAAD3F; Mon, 7 Dec 2020 08:16:59 +0000 (UTC) Subject: Re: [PATCH v3 02/13] video: fbdev: core: Fix kernel-doc warnings in fbmon + fb_notify To: Randy Dunlap , Sam Ravnborg , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Lee Jones References: <20201206190247.1861316-1-sam@ravnborg.org> <20201206190247.1861316-3-sam@ravnborg.org> <0fb6ff8b-bea3-c5bc-0d37-8a5fdab41abc@infradead.org> From: Thomas Zimmermann Message-ID: Date: Mon, 7 Dec 2020 09:16:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <0fb6ff8b-bea3-c5bc-0d37-8a5fdab41abc@infradead.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kuninori Morimoto , Rich Felker , Geert Uytterhoeven , Arnd Bergmann , Bartlomiej Zolnierkiewicz , Peter Zijlstra , Daniel Vetter , Qilong Zhang , Thomas Winischhofer , Douglas Anderson , Gustavo A R Silva , Tony Prisk , Andrzej Hajda , Peter Jones , Thierry Reding , Mike Rapoport , Alexander Klimov , Michael Ellerman , Colin Ian King , Andrew Morton , linux-arm-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============0719869311==" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============0719869311== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xYe0uOpM1F6hjIb5nrykrIwuo08X7yJ6m" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --xYe0uOpM1F6hjIb5nrykrIwuo08X7yJ6m Content-Type: multipart/mixed; boundary="VQOHHnh5WletRD1WjGBJJ9Fh5n9ALQ9iS"; protected-headers="v1" From: Thomas Zimmermann To: Randy Dunlap , Sam Ravnborg , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Lee Jones Cc: Alexander Klimov , Andrew Morton , Andrzej Hajda , Arnd Bergmann , Bartlomiej Zolnierkiewicz , Colin Ian King , Daniel Vetter , Douglas Anderson , Geert Uytterhoeven , Gustavo A R Silva , Kuninori Morimoto , linux-arm-kernel@lists.infradead.org, Michael Ellerman , Mike Rapoport , Peter Jones , Peter Zijlstra , Qilong Zhang , Rich Felker , Thierry Reding , Thomas Winischhofer , Tony Prisk Message-ID: Subject: Re: [PATCH v3 02/13] video: fbdev: core: Fix kernel-doc warnings in fbmon + fb_notify References: <20201206190247.1861316-1-sam@ravnborg.org> <20201206190247.1861316-3-sam@ravnborg.org> <0fb6ff8b-bea3-c5bc-0d37-8a5fdab41abc@infradead.org> In-Reply-To: <0fb6ff8b-bea3-c5bc-0d37-8a5fdab41abc@infradead.org> --VQOHHnh5WletRD1WjGBJJ9Fh5n9ALQ9iS Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi Am 06.12.20 um 20:37 schrieb Randy Dunlap: > On 12/6/20 11:02 AM, Sam Ravnborg wrote: >> Fix kernel-doc warnings reported when using W=3D1 >> >> v2: >> - Improve subject (Lee) >> >> v3: >> - Add RETURNS documentation (Thomas) >=20 > Hi Sam, >=20 > Yes, RETURNS: will work. It just looks like any kernel-doc section name= , > such as Context: or Note:. > However, the documented format for return info is "Return:". > (see Documentation/doc-guide/kernel-doc.rst) Thanks for the note. I asked for RETURNS: because the rest of the file=20 appears to be using it. Returns: is certainly the better alternative. I=20 didn't know there was a difference. Best regards Thomas >=20 >=20 >> Signed-off-by: Sam Ravnborg >> Cc: Lee Jones >> Cc: Sam Ravnborg >> Cc: Randy Dunlap >> Cc: Bartlomiej Zolnierkiewicz >> Cc: Daniel Vetter >> Cc: "Alexander A. Klimov" >> --- >> drivers/video/fbdev/core/fb_notify.c | 10 ++++++++++ >> drivers/video/fbdev/core/fbmon.c | 2 +- >> 2 files changed, 11 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/video/fbdev/core/fb_notify.c b/drivers/video/fbde= v/core/fb_notify.c >> index 74c2da528884..4e39c61fae1f 100644 >> --- a/drivers/video/fbdev/core/fb_notify.c >> +++ b/drivers/video/fbdev/core/fb_notify.c >> @@ -19,6 +19,9 @@ static BLOCKING_NOTIFIER_HEAD(fb_notifier_list); >> /** >> * fb_register_client - register a client notifier >> * @nb: notifier block to callback on events >> + * >> + * RETURNS: >> + * 0 on success, negative error code on failure. >> */ >> int fb_register_client(struct notifier_block *nb) >> { >> @@ -29,6 +32,9 @@ EXPORT_SYMBOL(fb_register_client); >> /** >> * fb_unregister_client - unregister a client notifier >> * @nb: notifier block to callback on events >> + * >> + * RETURNS: >> + * 0 on success, negative error code on failure. >> */ >> int fb_unregister_client(struct notifier_block *nb) >> { >> @@ -38,7 +44,11 @@ EXPORT_SYMBOL(fb_unregister_client); >> =20 >> /** >> * fb_notifier_call_chain - notify clients of fb_events >> + * @val: value passed to callback >> + * @v: pointer passed to callback >> * >> + * RETURNS: >> + * The return value of the last notifier function >> */ >> int fb_notifier_call_chain(unsigned long val, void *v) >> { >> diff --git a/drivers/video/fbdev/core/fbmon.c b/drivers/video/fbdev/co= re/fbmon.c >> index 1bf82dbc9e3c..b0e690f41025 100644 >> --- a/drivers/video/fbdev/core/fbmon.c >> +++ b/drivers/video/fbdev/core/fbmon.c >> @@ -605,6 +605,7 @@ static void get_detailed_timing(unsigned char *blo= ck, >> * fb_create_modedb - create video mode database >> * @edid: EDID data >> * @dbsize: database size >> + * @specs: monitor specifications, may be NULL >> * >> * RETURNS: struct fb_videomode, @dbsize contains length of database= >> * >=20 >=20 --=20 Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany (HRB 36809, AG N=C3=BCrnberg) Gesch=C3=A4ftsf=C3=BChrer: Felix Imend=C3=B6rffer --VQOHHnh5WletRD1WjGBJJ9Fh5n9ALQ9iS-- --xYe0uOpM1F6hjIb5nrykrIwuo08X7yJ6m Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEExndm/fpuMUdwYFFolh/E3EQov+AFAl/N5PQFAwAAAAAACgkQlh/E3EQov+BU OA/+IbJ5Ctnlbd4h/CDle+mmKYWbEwIzIq2t3YZ768RwmILkJQLKitQ20Cx87ZLvcZxI857bUNyA 7IJ9fxdqob8vQrRsxcnEO/Sf5kUbI2Jbxc9cibusgaTXqLB1j+gLVjD+yKYNbOLgBOkDpRBE+oN5 yCNWUfNAcEk4WGEksvp31K8xmjPrSG+CokuH8Y2pzAMYcf8nzWz/CeuCNajjNgwVYCWu9kvRRpLy 5RuAqq/y1WPvoWkJbC43yXsE9RkwQT7sA2HAlNgvZ6CjVvyM0V257F78OsOH8ovmGopWJjIb3OpZ 14panr3TJryGhmihVpwqBevbTjHHIDOOKPOLtUYtVHAQa2NyYrR7eI9b/raZFilMxDXqvbTSWYd+ +BG0Z/wLwZnetbggRxG0x0raofP9G1HSGCSFQoIof1lIPblFCIBM8ysCzGVy0Lqf3t0f/sU3Psl/ BbmsAViYq+cRekQy/v3gzhmwDM8Sm/suDzGIhPzd30pR92xVvzmieWITVCgjYrqdjHRn7emz+fSq H7Ibl22RIZLV4miR6+ycXKRB7zW2DPUjlTs1dVK5+ZQ/3/ji1kjWB/CZoctXikCa9LigrA/0cmuh eBI4OZMWdHeeFM06OxqTlwwBRtVTomEnZuFjASMWbOWI2XQObDM3XsOk1OAeoH0S4tifpAxSaMLU wu8= =6Skc -----END PGP SIGNATURE----- --xYe0uOpM1F6hjIb5nrykrIwuo08X7yJ6m-- --===============0719869311== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0719869311==--