Re: [PATCH v4] lib/string: Introduce sysfs_streqcase

From: Andrew Morton
Date: Fri Apr 09 2021 - 02:52:09 EST


On Fri, 9 Apr 2021 08:44:39 +0200 Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:

> On Thu, Apr 08, 2021 at 10:05:02PM -0700, Andrew Morton wrote:
> > On Thu, 8 Apr 2021 15:06:05 +0200 Gioh Kim <gi-oh.kim@xxxxxxxxx> wrote:
> >
> > > As the name shows, it checks if strings are equal in case insensitive
> > > manner.
> >
> > Peh. Who would die if we simply made sysfs_streq() case-insensitive?
>
> I doubt anyone, let's do that instead.

There's a risk that people will write scripts/config/etc on a 5.13+
kernel and then find that they malfunction on earlier kernels...