lkml.org 
[lkml]   [2023]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] kstrtox: Remove strtobool()
From
Le 24/07/2023 à 20:05, Andrew Morton a écrit :
> On Thu, 20 Jul 2023 22:40:35 +0200 Christophe JAILLET <christophe.jaillet@wanadoo.fr> wrote:
>
>> The conversion from strtobool() to kstrtobool() is completed.
>> So strtobool() can now be removed.
>
> I still have some strtobool()s in mm.git, so I can't apply this.
>
> Probably nobody can apply this to their tree at this stage. A resend
> after 6.6-rc1 would be the simplest approach.
>
>

Let's do it then.

Note that in -next there is still some strtobool but only in tools/.
I thinks it is ok to leave it as-is.


git grep -w strtobool

tools/include/linux/string.h:int strtobool(const char *s, bool *res);
tools/lib/string.c: * More specifically, the first copied function was
strtobool, which
tools/lib/string.c: * d0f1fed29e6e ("Add a strtobool function matching
semantics of existing in kernel equivalents")
tools/lib/string.c: * strtobool - convert common user inputs into
boolean values
tools/lib/string.c:int strtobool(const char *s, bool *res)
tools/perf/util/bpf-loader.c: err = strtobool(value, &bool_value);


CJ

\
 
 \ /
  Last update: 2023-07-24 21:17    [W:0.053 / U:0.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site