[tip:,timers/core] clocksource/drivers/arm_arch_timer: Use kstrtobool() instead of strtobool()
Message ID | 167060084243.4906.1276129889140707311.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp851126wrr; Fri, 9 Dec 2022 07:51:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Af8gNvHOQX0aFCNyTqMF2tXi6Ulk56HWKiRVC37lLnYjvHpITWVQDuMF3K5C+BFeDzfmI X-Received: by 2002:a17:906:37ce:b0:7c1:41bb:70ac with SMTP id o14-20020a17090637ce00b007c141bb70acmr1978743ejc.64.1670601059941; Fri, 09 Dec 2022 07:50:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670601059; cv=none; d=google.com; s=arc-20160816; b=KQEBXyZYkRaE3lMc7S0PNe34//BiDQpaPNVGwlLLkyXvKqwEdccWrMNz70OScZCSxq JnipYEM1TgXL/EFrSrR7NmHs61x1DMgCdLKrmQGHYyQmTYtX1pp2RjlCRPEU+gdJo/FN zk49dC40AordmzBkszBEB0H4VZF799yigNCYVXcZdcY8EFV54hkAaczgm+I2bOmFf9dN TsIjt2VOucsPUP0roK8hasFeNyNKLWwoHpiE7HAxKVvpCNcEJGktlOHSauLknv7QTMnh KkRjtEdMh56yuk+nC2umoKIOxrU0E6/GLqLcOlWP5AvHaOiHcjz0op+dgW8luSx0uXTS yAng== 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=JOOwBJNPMAhOXpq3k36p3Lw74niqTkZH1cWby86RAfo=; b=isvzx43Hyv+Uya0BcO8i6YnxRlV8xx+nX9Q8NeUao/kmyx9OBaZJ8USmAlxZ/h4jts Ax0MHkL9255B8E8XTyJ5guZEuUgHneqmOxwPxAZCYSlUqhzTSuoVWLuzhZF6q7YR1kh/ ykOZ+y/2M7Lnw9oWhUoxaerbTuwurAYwSeK0Ndy73lhXdntZCfgo3Fu/XC+tw2I6f88s REiH+jERJ8V0mjxvmMO1NaYxtPGEajJ/+yfbWkKpVAjDGKKtXDUBF3lGlphxB7NUWkub /lNNB7duTHPqJb5fjVBVkU6Bg43R+GZYgEWvBBTtBgTzqXOpood1RgHqjolOasHssXSj LRkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=UKagibPQ; 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 gs39-20020a1709072d2700b0078e1d213812si96415ejc.184.2022.12.09.07.50.35; Fri, 09 Dec 2022 07:50:59 -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=UKagibPQ; 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 S230037AbiLIPre (ORCPT <rfc822;sophiezhao968@gmail.com> + 99 others); Fri, 9 Dec 2022 10:47:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230203AbiLIPrZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 9 Dec 2022 10:47:25 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44BEC32BB7; Fri, 9 Dec 2022 07:47:24 -0800 (PST) Date: Fri, 09 Dec 2022 15:47:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1670600842; 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=JOOwBJNPMAhOXpq3k36p3Lw74niqTkZH1cWby86RAfo=; b=UKagibPQG/UNh7JwBRo1dMDPx8+F6KpkV+cA4ir+kzUUVpBKlP7d9g7ByWWzEgUS+sLjrd y/n+XSuSg5OTzBntRp8SKD8dWoRgUQ5rta4pSh4ZdzU+vfervRzjNYJ9hY2ShKW7yQp+K6 +RN+Fu5E/RmWI9V/2y0VtW1FR6m4zpt+MS+osOX/Xl8h9oHTaKf5jZnss3/tR1fkBb78zd mPTQc2cIuz82tXAdbw0hNSoIq3qBZ57vLnx7/SjxZ5wUBR4TkaHMOX7j0+yDzRhzeYV+w5 ZPkAlc/k1Y+AEOyhFBQBai8JhMnTsZe5syKwUb8jzEdIsefvn50hyWTVftKYzw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1670600842; 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=JOOwBJNPMAhOXpq3k36p3Lw74niqTkZH1cWby86RAfo=; b=AJevUmf6gvbvuqB242D1DcE3nvJA38+vTkuqJbyItclvGF4e5spcnDTScfnW/g7N13F6L7 5ir069NSomt1kWDw== From: "tip-bot2 for Christophe JAILLET" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/drivers/arm_arch_timer: Use kstrtobool() instead of strtobool() Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>, Mark Rutland <mark.rutland@arm.com>, Daniel Lezcano <daniel.lezcano@kernel.org>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: =?utf-8?q?=3Cf430bb12e12eb225ab1206db0be64b755ddafbdc=2E1667336?= =?utf-8?q?095=2Egit=2Echristophe=2Ejaillet=40wanadoo=2Efr=3E?= References: =?utf-8?q?=3Cf430bb12e12eb225ab1206db0be64b755ddafbdc=2E16673360?= =?utf-8?q?95=2Egit=2Echristophe=2Ejaillet=40wanadoo=2Efr=3E?= MIME-Version: 1.0 Message-ID: <167060084243.4906.1276129889140707311.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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: <linux-kernel.vger.kernel.org> 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?1751752177220742937?= |
Series |
[tip:,timers/core] clocksource/drivers/arm_arch_timer: Use kstrtobool() instead of strtobool()
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Dec. 9, 2022, 3:47 p.m. UTC
The following commit has been merged into the timers/core branch of tip: Commit-ID: 4238568744c0a150d8901e7847092a0f871c938d Gitweb: https://git.kernel.org/tip/4238568744c0a150d8901e7847092a0f871c938d Author: Christophe JAILLET <christophe.jaillet@wanadoo.fr> AuthorDate: Tue, 01 Nov 2022 22:13:58 +01:00 Committer: Daniel Lezcano <daniel.lezcano@kernel.org> CommitterDate: Fri, 02 Dec 2022 13:17:34 +01:00 clocksource/drivers/arm_arch_timer: 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 (<linux/kstrtox.h>) Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Acked-by: Mark Rutland <mark.rutland@arm.com> Link: https://lore.kernel.org/r/f430bb12e12eb225ab1206db0be64b755ddafbdc.1667336095.git.christophe.jaillet@wanadoo.fr Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org> --- 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 e2920da..1695c56 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -18,6 +18,7 @@ #include <linux/clocksource.h> #include <linux/clocksource_ids.h> #include <linux/interrupt.h> +#include <linux/kstrtox.h> #include <linux/of_irq.h> #include <linux/of_address.h> #include <linux/io.h> @@ -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);