From patchwork Mon Nov 28 13:38:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 26779 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5676099wrr; Mon, 28 Nov 2022 05:44:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf48CDZpI2vhUlsMmATfFBL2oWt6F39O8zmDT8ck1mnbx/tIIjpojLdTyy3S+8oipqsFfO9a X-Received: by 2002:a05:6a00:1c8c:b0:574:89a7:9450 with SMTP id y12-20020a056a001c8c00b0057489a79450mr21460815pfw.85.1669643052898; Mon, 28 Nov 2022 05:44:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669643052; cv=none; d=google.com; s=arc-20160816; b=QbzBtGcfYV5iqOKmQMbWEDXxaU5K1W9uF2+FLv/TiyceZLmgJRXFhbQOw5ppfuHhls BTLLoNY8n18vJK2JlomUIkQVDmB5pKvwB/CeajWrMUVohRfMQel7jded4sksIApAK6rS YfNV0XQkdo01f2oDdl5s6FaYyRe5q5Q0+B+AYSlC+6hri7DS1VwSE3N6gi4HDWnvbsAy uuhmnxlU/fySOQrruCnhNCOQX4u4b+66AEML19c2YRr7lNjwOzq0TNuIpJxTLSNWQ9uq gE+UId57T3OupQoOuEl310o3Ep78MfpsYeuWLVaVVD0lh/XmsDDiS9iNsgaDQwgvJBra gvrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=yNnynXnRegdXzVlwj3a1KTCbuWWp+T8YaZaXXxxRguM=; b=pdnsw+Mp7oyarlxfvsECux5XVx+jcIuVKhwpwFUqFzzELAuaGtwcAL6TUql0JU6QBj IevVXzzsCW+S35q/MdzSfN8JH9gPSRcOMUs0l6lD5K5hkBB5a0aZ1ptBRU3x0gUQmpg2 DuUg3aaRYkDWr4aFSV655yHl0McBdsEYpbPVo1UjS+Y80ECx9Dpv9AIQvm3rhgRnFQc5 KKEe/y+CSN0LlsFOYFhObcQ16GXLihK0VOSzakbTnAsX6wfTMtbp1Lzeu8uChis0gCrZ 7D/YO+AvuipvKpg8KQXFBljCkshZ0OE8LZyHww1UlXW6Shv24RgnukXRNktS63nN0lmm mcWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4WkfDg8I; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u20-20020a056a00159400b00563764cecb3si13996119pfk.279.2022.11.28.05.43.59; Mon, 28 Nov 2022 05:44:12 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4WkfDg8I; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231600AbiK1Ni4 (ORCPT + 99 others); Mon, 28 Nov 2022 08:38:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230367AbiK1Niy (ORCPT ); Mon, 28 Nov 2022 08:38:54 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5C5F1E3F9 for ; Mon, 28 Nov 2022 05:38:52 -0800 (PST) Date: Mon, 28 Nov 2022 13:38:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669642730; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yNnynXnRegdXzVlwj3a1KTCbuWWp+T8YaZaXXxxRguM=; b=4WkfDg8IjNtw2SfSkCnfQAe+7R3+fXG5hCySNwuSTbkEN3OrbR1YnWBGLvfjQtZBrVJ2bK gnvLzcbKw3vJ4qz8x1JdQjnZUXxaE5KN+/KE5qtAnWkThsoC7nVNV5RsdrIvg+vXaWv68O 90YGd5FibLLtxIEwlePrHgCjVk7duKVPToeNzdPqbEJ5xtLIPjN29fokCRf4ED8nKbnxM7 lQdhnBnQ+SKalgk4s9FaYG8d28DyzPsjbNkIODuiqdpfggF4C9kM7yUxrHjYRcBCAAhnOX eYB7WNRgndWnCGcanK2fYbJph/CsjEYh+2j32DnO1iS1OA5zjZ5/9OtFRU+RXw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669642730; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yNnynXnRegdXzVlwj3a1KTCbuWWp+T8YaZaXXxxRguM=; b=2nfi+GY5ihNSu7fX08OcUhI+2cm3RVIcZyAzcin895UP6sTOGjG/YtYPvYYPSBn4fpvir3 iAMEwttIBsb4vRBA== From: "irqchip-bot for Christophe JAILLET" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqchip/gic: Use kstrtobool() instead of strtobool() Cc: Christophe JAILLET , Marc Zyngier , tglx@linutronix.de In-Reply-To: =?utf-8?q?=3C755c4083122071bb27aa8ed5d98156a07bb63a39=2E1667336?= =?utf-8?q?095=2Egit=2Echristophe=2Ejaillet=40wanadoo=2Efr=3E?= References: =?utf-8?q?=3C755c4083122071bb27aa8ed5d98156a07bb63a39=2E16673360?= =?utf-8?q?95=2Egit=2Echristophe=2Ejaillet=40wanadoo=2Efr=3E?= MIME-Version: 1.0 Message-ID: <166964272891.4906.17772181110833861902.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, 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?1750747633641994605?= X-GMAIL-MSGID: =?utf-8?q?1750747633641994605?= The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 5e279739d7312b8958ec816fa38dba2725638503 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/5e279739d7312b8958ec816fa38dba2725638503 Author: Christophe JAILLET AuthorDate: Tue, 01 Nov 2022 22:13:51 +01:00 Committer: Marc Zyngier CommitterDate: Mon, 28 Nov 2022 13:32:55 irqchip/gic: 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. While at it, include the corresponding header file () Signed-off-by: Christophe JAILLET Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/755c4083122071bb27aa8ed5d98156a07bb63a39.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 34d5856..997104d 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 4c7bae0..799f86d 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);