From: Christophe JAILLET Date: Sat, 14 Jan 2023 09:08:13 +0000 (+0100) Subject: kernel/params.c: Use kstrtobool() instead of strtobool() X-Git-Tag: v6.3-rc1~120^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=def7b92efd868a6c78da86770704c1a03506016e;p=thirdparty%2Fkernel%2Flinux.git kernel/params.c: Use kstrtobool() instead of strtobool() strtobool() is the same as kstrtobool(). However, the latter is more used within the kernel. In order to remove strtobool() and slightly simplify kstrtox.h, switch to the other function name. While at it, include the corresponding header file () Signed-off-by: Christophe JAILLET Reviewed-by: Miroslav Benes Signed-off-by: Luis Chamberlain --- diff --git a/kernel/params.c b/kernel/params.c index 14d66070757b0..6e34ca89ebae7 100644 --- a/kernel/params.c +++ b/kernel/params.c @@ -4,6 +4,7 @@ */ #include +#include #include #include #include @@ -310,7 +311,7 @@ int param_set_bool(const char *val, const struct kernel_param *kp) if (!val) val = "1"; /* One of =[yYnN01] */ - return strtobool(val, kp->arg); + return kstrtobool(val, kp->arg); } EXPORT_SYMBOL(param_set_bool);