Re: [PATCH v2] scripts/coccinelle: Add script for using ARRAY_END()
From: Markus Elfring
Date: Mon Mar 09 2026 - 10:05:29 EST
…
> ---
> 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