[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHp75VeAVFNA7faZjsHOyAM2ZKU=xWTVZDKiPwY2woKW712Qpw@mail.gmail.com>
Date: Wed, 27 Apr 2022 15:50:49 +0200
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Jagdish Gediya <jvgediya@...ux.ibm.com>
Cc: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-mm <linux-mm@...ck.org>, ying.huang@...el.com,
Dave Hansen <dave.hansen@...el.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Richard Fitzgerald <rf@...nsource.cirrus.com>,
Petr Mladek <pmladek@...e.com>
Subject: Re: [PATCH v2] lib/kstrtox.c: Add "false"/"true" support to kstrtobool
On Tue, Apr 26, 2022 at 8:49 PM Jagdish Gediya <jvgediya@...ux.ibm.com> wrote:
> On Tue, Apr 26, 2022 at 04:27:01PM +0300, Andy Shevchenko wrote:
> > On Tue, Apr 26, 2022 at 12:10:01PM +0530, Jagdish Gediya wrote:
> > > At many places in kernel, It is necessary to convert sysfs input
> > > to corrosponding bool value e.g. "false" or "0" need to be converted
corresponding
> > > to bool false, "true" or "1" need to be converted to bool true,
> > > places where such conversion is needed currently check the input
> > > string manually, kstrtobool can be utilized at such places but
> >
> > kstrtobool()
> >
> > > currently kstrtobool doesn't have support to "false"/"true".
> >
> >
> > Ditto.
> >
> > > Add "false"/"true" support to kstrtobool while string conversion
> >
> > Ditto.
> >
> > > to bool. Modify existing manual sysfs conversions to use kstrtobool().
...
> > Also Documentation update is missed.
> I am not finding any related documentation. I can update
> the comment on the function for true/false change.
Yes, please.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists