[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <871rcg2p8g.fsf@meer.lwn.net>
Date: Mon, 15 Mar 2021 13:25:51 -0600
From: Jonathan Corbet <corbet@....net>
To: Aditya <yashsri421@...il.com>,
Markus Heiser <markus.heiser@...marit.de>
Cc: lukas.bulwahn@...il.com, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-kernel-mentees@...ts.linuxfoundation.org
Subject: Re: [RFC] scripts: kernel-doc: avoid warnings due to initial
commented lines in file
Aditya <yashsri421@...il.com> writes:
>> The opening comment mark /** is used for kernel-doc comments [1]
>>
>> [1]
>> https://www.kernel.org/doc/html/latest/doc-guide/kernel-doc.html#how-to-format-kernel-doc-comments
>>
>
> Hi Markus!
> That's true. But the content inside the comment does not follow
> kernel-doc format.
> For e.g., try running kernel-doc -none/man/rst on the above file in
> the example("sound/pci/ctxfi/ctresource.c").
> The starting 2-3 lines in files generally do not contain any
> struct/enum/function, etc. declaration.
The problem is that it's marked as a kerneldoc comment without actually
being one; it looks like somebody's internal corporate formatting. The
fix is not to put a hack into kernel-doc - we have more than enough of
those in the file already! The right thing to do is to remove the extra
"*" so that the comment doesn't look like a kerneldoc comment anymore.
Thanks,
jon
Powered by blists - more mailing lists