[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.22.394.2410271624210.3498@hadrien>
Date: Sun, 27 Oct 2024 16:25:51 +0100 (CET)
From: Julia Lawall <julia.lawall@...ia.fr>
To: Andy Shevchenko <andy.shevchenko@...il.com>
cc: Thorsten Blum <thorsten.blum@...ux.dev>, Kees Cook <kees@...nel.org>,
Andy Shevchenko <andy@...nel.org>, Nicolas Palix <nicolas.palix@...g.fr>,
linux-hardening@...r.kernel.org, cocci@...ia.fr,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] coccinelle: Add str_off_on() and str_no_yes() rules
On Sun, 27 Oct 2024, Andy Shevchenko wrote:
> On Sun, Oct 27, 2024 at 2:59 PM Thorsten Blum <thorsten.blum@...ux.dev> wrote:
> >
> > In addition to str_on_off() and str_yes_no(), add rules to search for
> > str_off_on() and str_no_yes() replacements.
>
> I don't know cocci well enough, but this does simply not scale. We
> also have cases where "Yes"/"No", "YES"/"NO" and all possible
> variations of that.
Andy, are you concerned about the number of such functions in the kernel
or the number of rules in the semantic patch. There are indeed more
concise ways to write the semantic patch.
julia
>
>
> --
> With Best Regards,
> Andy Shevchenko
>
Powered by blists - more mailing lists