Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3005482rwi; Tue, 1 Nov 2022 14:42:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5POYpVcPZDY6ekqQslnRka4waIDpU7h51Wic08C2QymlsQ/h0dfW0Ev4dQKEu92YJaR5Wq X-Received: by 2002:a17:907:78b:b0:741:3d29:33d2 with SMTP id xd11-20020a170907078b00b007413d2933d2mr21367624ejb.103.1667338973975; Tue, 01 Nov 2022 14:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667338973; cv=none; d=google.com; s=arc-20160816; b=ZqUO14Fx8dvncIIBBQTjSq/eNYpLt2w42GbyHlPL8xmnFrpOFg00MLxgQNYpDSRMUV i70xjrWpIsNaM2bsScWuig8dJfcAfrhg9suNR1kvfkKJO/Kwg6I2TwlJznAYOv+7L0yx pEsy6Z9+iT9Gt8kPjewfvU8N0TAn57C6LfoXgUu/U35lf7anUGJUitTMRpWQ6FPGX7u3 1kIJeK+12G8cI4QAf5dzlH+x8ZZfM//w7APlztHDJnPQEDalicVuV+4RKunTdJLt3/6/ rlZNNfB+fYg6ybwR9LUs/tSY/tzuHS6JCpkJnZWOEReru6X/JTiCnG69qY8XE1c/fC1S cCog== 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=X0zCG4ChcnE+xjQXbuGCj6hSAGf7KPoitvusgKcaNVQ=; b=L/ZK2PVtSf2cCtXfiEiaX2cVgZ3OuPnGSVWrJfFu8hDJSzQ63S4Jj8wVTE2P6n1pvT 0twjZCzrWhZgGcbXI4jfj6F1UAscjwM4wv8Ce/9+wS5B7U2lJnzM9TY9dKq6wPtzPNkU DjPwkBiJMn24S8xs6p676+PgkTKXUvmLnC5GKJ0ovHMG7BccmhU3hkBoTfYwC0ddhchj qnQp7mkqegtDbQsldky+2E8PzjXGK37DNdYqBIooBVLDlYbtd7HzRItDQefev8mrLWPn TgsA08pQj+kWipTZchR3C2W1HoemEbt2RdzqD8kmxBcDRhlYdD/iUpI0k/6VxH13MSeT fo+w== 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 gt13-20020a1709072d8d00b007836ec6999dsi15375684ejc.904.2022.11.01.14.42.31; Tue, 01 Nov 2022 14:42:53 -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 S230115AbiKAVPH (ORCPT + 96 others); Tue, 1 Nov 2022 17:15:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbiKAVO5 (ORCPT ); Tue, 1 Nov 2022 17:14:57 -0400 Received: from smtp.smtpout.orange.fr (smtp-16.smtpout.orange.fr [80.12.242.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7823A1DF24 for ; Tue, 1 Nov 2022 14:14:55 -0700 (PDT) Received: from pop-os.home ([86.243.100.34]) by smtp.orange.fr with ESMTPA id pyanoKD2rsfCIpyazoWfH6; Tue, 01 Nov 2022 22:14:54 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 01 Nov 2022 22:14:54 +0100 X-ME-IP: 86.243.100.34 From: Christophe JAILLET To: Thomas Gleixner , Marc Zyngier Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 03/30] irqchip: Use kstrtobool() instead of strtobool() Date: Tue, 1 Nov 2022 22:13:51 +0100 Message-Id: <755c4083122071bb27aa8ed5d98156a07bb63a39.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/ --- drivers/irqchip/irq-gic-v3.c | 3 ++- drivers/irqchip/irq-gic.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index 34d58567b78d..997104d4338e 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -1171,7 +1172,7 @@ static bool gicv3_nolpi; static int __init gicv3_nolpi_cfg(char *buf) { - return strtobool(buf, &gicv3_nolpi); + return kstrtobool(buf, &gicv3_nolpi); } early_param("irqchip.gicv3_nolpi", gicv3_nolpi_cfg); diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index 4c7bae0ec8f9..799f86d84b43 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c @@ -19,6 +19,7 @@ */ #include #include +#include #include #include #include @@ -1332,7 +1333,7 @@ static bool gicv2_force_probe; static int __init gicv2_force_probe_cfg(char *buf) { - return strtobool(buf, &gicv2_force_probe); + return kstrtobool(buf, &gicv2_force_probe); } early_param("irqchip.gicv2_force_probe", gicv2_force_probe_cfg); -- 2.34.1