Re: [cocci] [PATCH v2] scripts/coccinelle: Add script for using ARRAY_END()

Markus Elfring <[email protected]> Mon, 9 Mar 2026 15:05:08 +0100
Newsgroups fr.inria.cocci,org.kernel.vger.kernel-janitors,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
…
> ---
>  scripts/coccinelle/misc/array_end.cocci | 74 +++++++++++++++++++++++++
…

Some contributors would appreciate patch version descriptions.
https://lore.kernel.org/all/?q=%22This+looks+like+a+new+version+of+a+previously+submitted+patch%22
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.0-rc3#n310


May a subdirectory name be omitted from the subject prefix?
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/log/scripts/coccinelle/


…
> +// Comments: No known false positives, but has a few false negatives

Would such information motivate for any further software refinements?


…
> +@script:python depends on org@
> +p << r.p;
> +@@
> +
> +coccilib.org.print_todo(p[0], "WARNING should use ARRAY_END")
…

I suggest to reuse the message also from the SmPL report rule.

Regards,
Markus