Re: [Ksummit-discuss] [TECH TOPIC] Documentation

Joe Perches
2020-06-18T15:17:19Z

On Thu, 2020-06-18 at 12:04 +0300, Mike Rapoport wrote:
> if a patch breaks the sync between the code and the
> kerneldoc can it be detected by checkpatch.pl?

No, it can not. Not directly.

Please remember that checkpatch is a trivial set
of regexes and that checkpatch looks only at
patch diff blocks line-by-line.

A patch block that changes a function argument
may not also contain the kernel-doc.

As there already is an existing tool, that tool
should be used when possible.