From: Christophe JAILLET Date: Sat, 14 Jan 2023 15:08:22 +0000 (+0100) Subject: s390/ipl: use kstrtobool() instead of strtobool() X-Git-Tag: v6.6.7~3499^2~81 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c313094491150bae23b02270e83c72bb97ef2ab2;p=platform%2Fkernel%2Flinux-starfive.git s390/ipl: 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. Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/58a3ed2e21903a93dfd742943b1e6936863ca037.1673708887.git.christophe.jaillet@wanadoo.fr Signed-off-by: Heiko Carstens --- diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c index b74b728..406766c 100644 --- a/arch/s390/kernel/ipl.c +++ b/arch/s390/kernel/ipl.c @@ -1194,7 +1194,7 @@ static ssize_t reipl_eckd_clear_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t len) { - if (strtobool(buf, &reipl_eckd_clear) < 0) + if (kstrtobool(buf, &reipl_eckd_clear) < 0) return -EINVAL; return len; }