From: Mike Rapoport <rppt@linux.ibm.com>
To: Markus Heiser <markus.heiser@darmarit.de>
Cc: Matthew Wilcox <willy@infradead.org>,
Joe Perches <joe@perches.com>,
linux-doc@vger.kernel.org
Subject: Re: Return: vs Returns:
Date: Fri, 8 Feb 2019 12:55:58 +0200 [thread overview]
Message-ID: <20190208105557.GE11096@rapoport-lnx> (raw)
In-Reply-To: <e038da5e-bc39-59f4-5b7f-c97467563173@darmarit.de>
On Thu, Feb 07, 2019 at 06:33:34PM +0100, Markus Heiser wrote:
>
> Am 07.02.19 um 17:18 schrieb Mike Rapoport:
> >>>Does checkpatch checks the kernel-doc parts at all?
> >>No. I guess there are to many places to fail / to hard to put someone in
> >>charge. E.g. if you do include a single kernel-doc comment from a source all
> >>kernel-docs in the source will be parsed and may produce (error/warning)
> >>essages. What we have, are some targets:
> >>
> >>-linkcheckdocs
> >> check for broken external links (will connect to external hosts)
> >>
> >>- refcheckdocs
> >> check for references to non-existing files under Documentation
> >Right, but these should be checked explicitly and I doubt many people do it
> >before submitting patches. OTOH, checkpatch is something that's widely used
> >and if it had verified the kernel-doc parts, more comments would be
> >following the convention.
>
> I'am with you, but I do not have any clue how to solve this Gordian Knot
> faithful and without massive collateral damage / sorry :|
>
> The only thing I know, we have the -none option:
>
> $ ./scripts/kernel-doc -none ./include/media/cec.h
> ./include/media/cec.h:51: warning: Function parameter or member 'lock' not
> described in 'cec_devnode'
>
> But this is nothing more than noise if the patch does not touch cec_devnode.
> And there is another problem I see, if we want to check refs ...
Well, the case when a patch changes function parameters but forgets to
update the kernel-doc part is particularly annoying.
I believe it's possible to match function parameter changes with the
corresponding kernel-doc changes (or lack of them).
> >> -linkcheckdocs
> >> check for broken external links (will connect to external hosts)
> >>
> >> - refcheckdocs
> >> check for references to non-existing files under Documentation
>
> The refs are solved late in the sphinx build process when .rst files and
> kernel-doc comments come together .. so we need sphinx for checkpatch,
> I gues this is a no-go (?)
>
> -- Markus --
>
--
Sincerely yours,
Mike.
prev parent reply other threads:[~2019-02-08 10:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-07 13:59 Return: vs Returns: Matthew Wilcox
2019-02-07 15:30 ` Mike Rapoport
2019-02-07 15:58 ` Markus Heiser
2019-02-07 16:18 ` Mike Rapoport
2019-02-07 17:31 ` Joe Perches
2019-02-07 17:34 ` Matthew Wilcox
2019-02-07 17:50 ` Joe Perches
2019-02-07 17:58 ` Markus Heiser
2019-02-07 18:03 ` Joe Perches
2019-02-08 7:31 ` Jani Nikula
2019-02-07 18:03 ` Markus Heiser
2019-02-07 17:33 ` Markus Heiser
2019-02-08 10:55 ` Mike Rapoport [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190208105557.GE11096@rapoport-lnx \
--to=rppt@linux.ibm.com \
--cc=joe@perches.com \
--cc=linux-doc@vger.kernel.org \
--cc=markus.heiser@darmarit.de \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox