From patchwork Tue Nov 1 21:13:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 13873 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3212754wru; Tue, 1 Nov 2022 14:16:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5/Ci4hWCuM9ZuNaAO88S7dvRAvv4yweynrkkyUVx0r6BnFkpIqbmQdZImbsOK2OypfKtQI X-Received: by 2002:a65:4508:0:b0:43c:e3c6:d1c2 with SMTP id n8-20020a654508000000b0043ce3c6d1c2mr18589391pgq.582.1667337401146; Tue, 01 Nov 2022 14:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667337401; cv=none; d=google.com; s=arc-20160816; b=d31YtGV2Eitqi2N/lr0zP/Ev4C8TIXEpRrYkRRKf8Ot0789TFSpAuaP8Cj7zHz/LVG k4YsQWgN+4HYSFrp7jXR8UxlwlMH5Gw+MRsuQjZgRxySd8zDNikOecWhU7piaIdQVsKs uwT0AP5ISYnydSnFjOe2sGaSRZWST/SE5f7UtS4ymsSAW1DmOuKZK/uQw5h33ivWbrpb qWT3R0MHdZU851KnuTY9NHACKUYiD/b7C4DsZLLOlzrwU4lDSv7mni9+9I7a/+schYtX 3vUF0SwFdHP3ylg6UTASqmvBZJLt1WZNU/pPeC0nnUzlvHwjaup/XosqkJt0/c90o6Qe 1gQA== 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=iFAdZJTH7F5pq9UD+iSUlBxlkP7azAMdk+4Aw65MjKI=; b=dpHhSGXVoa9lDrwbymp8AqDfGIAhX5P9ZDpTJmRA1ofs5kpkb7JNwIUxWnY73Z8UVY Nqjt7SqKZC8xLTiVxyaiLaMedjzgqIlPnIJibxPyzLksUzHcakHPWk957dZ2mlDlbH+r G51QphxanHMPQB0URG+/sAwb3lxi/mYPd+dJgSy4OHCUGFL3xNop0x9VNBulhgMar/Q/ z+cbBBbI4Jf5ObGSK3+zx8K4j4YSZ+F8tY5H3cFg1jX3ixCIqVaumncFOtEeTarXKlZ5 54nyV5uFWs23aDphw7YZAV2O50n/83+jozfwsqYqt+i4aCuecpnRDWeYD5/ZAyVnVOr6 /goA== 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 q144-20020a632a96000000b00439f012ca7asi12485676pgq.743.2022.11.01.14.16.27; Tue, 01 Nov 2022 14:16:41 -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 S230410AbiKAVPu (ORCPT + 99 others); Tue, 1 Nov 2022 17:15:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230214AbiKAVPa (ORCPT ); Tue, 1 Nov 2022 17:15:30 -0400 Received: from smtp.smtpout.orange.fr (smtp-16.smtpout.orange.fr [80.12.242.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B50941DDF6 for ; Tue, 1 Nov 2022 14:15:15 -0700 (PDT) Received: from pop-os.home ([86.243.100.34]) by smtp.orange.fr with ESMTPA id pyanoKD2rsfCIpybJoWfJD; Tue, 01 Nov 2022 22:15:14 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 01 Nov 2022 22:15:14 +0100 X-ME-IP: 86.243.100.34 From: Christophe JAILLET To: Mark Rutland , Marc Zyngier , Daniel Lezcano , Thomas Gleixner Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-arm-kernel@lists.infradead.org Subject: [PATCH 10/30] clocksource/drivers/arm_arch_timer: Use kstrtobool() instead of strtobool() Date: Tue, 1 Nov 2022 22:13:58 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748329982856928033?= X-GMAIL-MSGID: =?utf-8?q?1748329982856928033?= 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 Acked-by: Mark Rutland --- 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]. [1]: https://lore.kernel.org/all/cover.1667336095.git.christophe.jaillet@wanadoo.fr/ --- drivers/clocksource/arm_arch_timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index a7ff77550e17..1af045b231fd 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -97,7 +98,7 @@ static bool evtstrm_enable __ro_after_init = IS_ENABLED(CONFIG_ARM_ARCH_TIMER_EV static int __init early_evtstrm_cfg(char *buf) { - return strtobool(buf, &evtstrm_enable); + return kstrtobool(buf, &evtstrm_enable); } early_param("clocksource.arm_arch_timer.evtstrm", early_evtstrm_cfg);