From patchwork Sat Jan 14 15:08:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 43771 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp323968wrn; Sat, 14 Jan 2023 07:10:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXuN9oO/VrUEon2E0XKOAqS3tzN7VMjH4cPa9bMWYB3EpMrkH57jsvYuYoZ0IYsS3zNV6Ljh X-Received: by 2002:aa7:d1c8:0:b0:49b:7416:e3fc with SMTP id g8-20020aa7d1c8000000b0049b7416e3fcmr8631456edp.36.1673709047486; Sat, 14 Jan 2023 07:10:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673709047; cv=none; d=google.com; s=arc-20160816; b=crDnGjbeBTL7VVSPCTuCJETz57HxguyQAnNFrHMLWZ0BlbVFwvypsVjY/nB+LiXc8C BkPU0EyiggrTvNQ2Hsq+wUOOSRjDPEA3fFF/d+MTKBG+t1lxBD3Iub4831RxtvLNerD0 C6+fr16BEP3vB25XZMiL/cSf4OgwP6yEHEAjSKXRonbJmlmNE5IWyWZv1O+TblsIC/bJ s12z9RA4zfgv5d3S5mZGso3P34aSle9ilMDGawIVYboRxInbx+RcMSUzs1tPGooco1qC ogcn3UehzTG5wwo7LyQ+YnmQ/FZadRtaygKTExPaw3+d0SN+XSfYecOpClPf266MNU14 U2DQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r19-20020a056402035300b00483c6dd461esi22160407edw.203.2023.01.14.07.10.23; Sat, 14 Jan 2023 07:10:47 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755011138300346515?= X-GMAIL-MSGID: =?utf-8?q?1755011138300346515?= 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; }