Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3045558rwi; Tue, 1 Nov 2022 15:17:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6zYMrPSufhS5hMeta/YflkwGRhx6RYxuFaZy+M0aOxzXisT4lVEYYgCxl0bLELxzoh2FeF X-Received: by 2002:a17:90a:ca18:b0:213:98e7:3af with SMTP id x24-20020a17090aca1800b0021398e703afmr24910439pjt.174.1667341030383; Tue, 01 Nov 2022 15:17:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667341030; cv=none; d=google.com; s=arc-20160816; b=cCdeaV7zedcx7ni7SwcGgujKQ0hhTSCfWpv2ILWD+D1M+teawR8+8h0ZadBEtjiFBc DuL2ecJ5CE2VPwC3zMdfYb3FVbCzCnQlR6Q5jMAq8P6dZ7eVhJQUCBweurR8xlIGocZP vggXjq+9f0czzARs7Ih8G4Kzq1OPznv712GNfmG3fUHhpK6TIa1acXZl2p3j/selzIbD D+Zui6eT6J9YDOTEdIjBYqcSjIggjl/kUsZ4phIbeAa9ZjWMmRrCnCwhsyo6Cwdpbb6y DrAzO47BqT10tCfS+g5KNyWaEJ6VMHZe+GmlLabQikivpDKTwM7Gz8yWjbSkbvGaXqJz hVKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ZQaj2RgRHC1lqxeauxzh/bcoZcMyY0SXUI1Tex6CjN0=; b=K4nsD8l2t/C2TFhJ3TrtEOOHFYByabAi5EfEQCbqdPjAe65XZSFfDECYd8MXZLCG5M zyTTffMt1X/CRewqYMvuhuIrnyIcr/ICl4gMpI4kPb+xHat4aqhTipKcl4foo5BvCZjq vdQMx7TjO2fZSNcAZ4fDwsyWl8zrMhYQh24sQ968vPZ+8ghc+Cp/FY/E53WNfWR+/Hkw ywyv8gZ+9aLqhAFOUSPv2q1bPTBRjpPkoaXCgr9HGU611qKjUssOlW6NmKWraJ/pzT96 EfU/hA8s4Ku66q2DB7IvhaKlKi+Q4opc+OMPHC/Ueirlu9mOkmZ8Z0KMPxGXh+/d6bCj 0l5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3-20020a056a00228300b00540cbd3cb18si14994071pfe.234.2022.11.01.15.16.56; Tue, 01 Nov 2022 15:17:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230375AbiKAVRC (ORCPT + 96 others); Tue, 1 Nov 2022 17:17:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230329AbiKAVQH (ORCPT ); Tue, 1 Nov 2022 17:16:07 -0400 Received: from smtp.smtpout.orange.fr (smtp-15.smtpout.orange.fr [80.12.242.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D298D1EC73 for ; Tue, 1 Nov 2022 14:15:31 -0700 (PDT) Received: from pop-os.home ([86.243.100.34]) by smtp.orange.fr with ESMTPA id pyanoKD2rsfCIpybZoWfLb; Tue, 01 Nov 2022 22:15:30 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 01 Nov 2022 22:15:30 +0100 X-ME-IP: 86.243.100.34 From: Christophe JAILLET To: Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-s390@vger.kernel.org Subject: [PATCH 26/30] s390/ipl: Use kstrtobool() instead of strtobool() Date: Tue, 1 Nov 2022 22:14:14 +0100 Message-Id: <7766dac5969021bf7432e8c4f038db8afc996b8a.1667336095.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- This patch is part of a serie that axes all usages of strtobool(). Each patch can be applied independently from the other ones. The last patch of the serie removes the definition of strtobool(). You may not be in copy of the cover letter. So, if needed, it is available at [1]. This patch has NOT been compile tested. [1]: https://lore.kernel.org/all/cover.1667336095.git.christophe.jaillet@wanadoo.fr/ --- arch/s390/kernel/ipl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c index 325cbf69ebbd..cdd575d7a91a 100644 --- a/arch/s390/kernel/ipl.c +++ b/arch/s390/kernel/ipl.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -779,7 +780,7 @@ static ssize_t reipl_fcp_clear_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t len) { - if (strtobool(buf, &reipl_fcp_clear) < 0) + if (kstrtobool(buf, &reipl_fcp_clear) < 0) return -EINVAL; return len; } @@ -899,7 +900,7 @@ static ssize_t reipl_nvme_clear_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t len) { - if (strtobool(buf, &reipl_nvme_clear) < 0) + if (kstrtobool(buf, &reipl_nvme_clear) < 0) return -EINVAL; return len; } @@ -952,7 +953,7 @@ static ssize_t reipl_ccw_clear_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t len) { - if (strtobool(buf, &reipl_ccw_clear) < 0) + if (kstrtobool(buf, &reipl_ccw_clear) < 0) return -EINVAL; return len; } -- 2.34.1