[RFC v4] scripts: kernel-doc: reduce repeated regex expressions into variables

Jonathan Corbet corbet at lwn.net
Mon May 17 17:49:08 UTC 2021


Aditya Srivastava <yashsri421 at gmail.com> writes:

> There are some regex expressions in the kernel-doc script, which are used
> repeatedly in the script.
>
> Reduce such expressions into variables, which can be used everywhere.
>
> A quick manual check found that no errors and warnings were added/removed
> in this process.
>
> Suggested-by: Jonathan Corbet <corbet at lwn.net>
> Signed-off-by: Aditya Srivastava <yashsri421 at gmail.com>
> ---
> Changes in v4:
> - Fix htmldocs warning at function parsing, involving repeated $type2 identifiers capture
> - Re-tested against all files in kernel tree

Applied, thanks for stickint with this.

jon


More information about the Linux-kernel-mentees mailing list