Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp718658rwb; Sat, 14 Jan 2023 07:21:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXso/52Hi3woi9TbIiT/t6DdqhIgutssvIpujXtbRmZI6E1oTvgnpAzrzjzgNMecSc7m6YGp X-Received: by 2002:a05:6402:2214:b0:49d:6503:9743 with SMTP id cq20-20020a056402221400b0049d65039743mr2557164edb.9.1673709665789; Sat, 14 Jan 2023 07:21:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673709665; cv=none; d=google.com; s=arc-20160816; b=TeyLUzXG/ULtQhxF4vQWgPNYZBb7BZ5p5ale9SUnC5zaPafpc6AEM9I/DTirqpTOY0 NadWvDKwl3B45QVe2zn9jbkfcdZIR0nlYh7RPfgRb8tIGS5biH/FMm+xvIJ586hGb7ul OquJ/sssrI0ayB+U5xnAHpULQli7C8ca2IUYLOLyZq2rvuvlQ1lIP/wXwjeHp5ZNxbjM dBq3FFkPUTC4R0U7XikuVMZ8ybigP58BYvh+tTFq6oT5Mcr/x5A/Mjkb+a75iv6T/Hn1 t2Sfxvpex8mHwt+x/U3Pldt3XQ4vY7CZc/Vpi8HOSifziRKD6kLIFPeJOI/+ZOUGR4pT eZYQ== 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 :message-id:date:subject:cc:to:from; bh=GqUnq3EVNafB72s9y/1RA7pPPf4mhQWfr4WVdzRI2eU=; b=MuZOlLfmP2Uf5aWOrl/k2Ijql3rBXWY+zSlES56tbitRrE//InGNrrSrS4AM+4P8JQ SfcHifcz+Hrvs7JZx9kkQCB7Xy0b2Oa1Ge1RwqKbIWIBvaOYcPSVSgfBSPlz2Jr03C7m Tj5oJMcSb+Wi8r/KbY/rU819vVh2AUKP2tayN+8Yfisc33nfO7aBhI4Px1eTfJ4cLGbS Z8O8WTsGxf/9ahMozyb0RsxM6YdJy94rlWCRGmp6BsdsYWs47O0BY/qJDV/WiueRjr6n Aj/bC0rrTedhJIbwRuRBMYjoTsNiJLSLfGeEvMdPis7Yq5752iO1Ng0qPzZjyDv9fm1E 7WZw== 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 z14-20020a056402274e00b0048ec71dd81asi30537526edd.40.2023.01.14.07.20.52; Sat, 14 Jan 2023 07:21:05 -0800 (PST) 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 S229879AbjANPIc (ORCPT + 52 others); Sat, 14 Jan 2023 10:08:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbjANPIa (ORCPT ); Sat, 14 Jan 2023 10:08:30 -0500 Received: from smtp.smtpout.orange.fr (smtp-18.smtpout.orange.fr [80.12.242.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5EFB7EDB for ; Sat, 14 Jan 2023 07:08:28 -0800 (PST) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id Gi8vpZUiZWvItGi8vpe9oD; Sat, 14 Jan 2023 16:08:26 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 14 Jan 2023 16:08:26 +0100 X-ME-IP: 86.243.2.178 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] s390/ipl: Use kstrtobool() instead of strtobool() (second step) Date: Sat, 14 Jan 2023 16:08:22 +0100 Message-Id: <58a3ed2e21903a93dfd742943b1e6936863ca037.1673708887.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 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_H3,RCVD_IN_MSPIKE_WL,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. Signed-off-by: Christophe JAILLET --- This patch is similar to the serie ([1]) that tries to axed all usages of strtobool(). Most of the patches have been merged in -next. Commit d9b25bdf57e4 ("s390/ipl: Use kstrtobool() instead of strtobool()") already fixed this file, but a new usage has been introduce by commit 87fd22e0ae92 ("s390/ipl: add eckd support"). This patch has been cross-compiled with make.cross. [1]: https://lore.kernel.org/all/cover.1667336095.git.christophe.jaillet@wanadoo.fr/ --- arch/s390/kernel/ipl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c index fbd646dbf440..5547223acce0 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; } -- 2.34.1