Re: [PATCH] cocci: Add rules to find str_plural() replacements

From: Kees Cook
Date: Thu Feb 15 2024 - 14:45:00 EST


On Thu, Feb 15, 2024 at 09:34:01PM +0200, Andy Shevchenko wrote:
> On Thu, Feb 15, 2024 at 09:33:31PM +0200, Andy Shevchenko wrote:
> > On Thu, Feb 15, 2024 at 10:02:00AM -0800, Kees Cook wrote:
> > > Add rules for finding places where str_plural() can be used. This
> > > currently finds:
> > > 54 files changed, 62 insertions(+), 61 deletions(-)
> >
> > Can we extend this to cover string_choices and call the script probably
> > str_choices.cocci ?
>
> (And add it to MAINTAINERS?)

Sure! I'll send a v2.

--
Kees Cook