Message ID | 87e3cc2547df174cd5af1fadbf866be4ef9e8e45.1694878151.git.christophe.jaillet@wanadoo.fr |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp1784978vqi; Sat, 16 Sep 2023 10:56:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELrrzcKlibVBKqcNDWvvhPuRS116x8vI4h2DjLlf+zE7wnSSiSh2Fn610CNb7ES12DMOT3 X-Received: by 2002:a05:6870:e313:b0:1d6:5e48:c133 with SMTP id z19-20020a056870e31300b001d65e48c133mr6344377oad.21.1694887003695; Sat, 16 Sep 2023 10:56:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694887003; cv=none; d=google.com; s=arc-20160816; b=ZmCdO0550kerTWXGEeywbg7dCaKVK2PC7Q1RpLpl5oJij0BsM2w5xGmjMiwq3Vd65Q j6X+A7G1sDDdFUmsRpxnK2jqT7qE7RoiU+Ebk14+JiHDGfWOde76627OzCb/M/Xr/vEF IHeb6wY/jaDLKduC7TzRefgvAUes3rcnKvtAuBCRvSp0LSNJ9sRoL3DlWVlGmUx7tXm3 oC9UGo132TkS/5ABVLT01XUg6owTDXb0dmi7zWI0aZ1IuyRa6rmm3o/1309wDUlxhrs6 uWwLUkAp3g4TV717ORKLywcgaURvZ5O8/yK29oQLaGJ0E4XYzJ+zm+26l2Tl5Zt4Yk0P UNzw== 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:dkim-signature; bh=Apgbf+4k5j0y245gUGakuZZxFJFzdZ6jheOh94UyP3g=; fh=q3Z6JrQy5+OgKCZFmb1F39bwQKoUYgFm/jHYFShgjo8=; b=njOeRMUHGAqX22UcpVpyKrjxeu8BJptJHfvqo2Mq51880OJyYy4/C9TpSfoo4VM54g kq9T4pxiyNn6ZaEFRv9rjZT34OFkiFlgJKHJDQcEhv7cKUvSRqHhWDL+kBRCcvvD7fJE QzQREf5lsbhFjzvEi+LcKCk05EsPrgCkv/28CxH9D29BSFqYdd6R5tOrJe7k/QIt6EGW Iimou9Dht2B3rZ2EcIFdYDTi/LJg6FdvsXX+7j6MJuWPSQ4QGPk6mjtDttLGFGTKY3HQ lUC/M+rDO8803vKCpLs8i93T8gfHDZyctUJQZlcyvoPvKq4BMyZbM56egKPj7BiiKO/L jldA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Q8rWoivz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id a5-20020a655c85000000b005404f8dd0easi4980288pgt.292.2023.09.16.10.56.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 10:56:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Q8rWoivz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 79F3F82DA97C; Sat, 16 Sep 2023 08:51:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232394AbjIPPup (ORCPT <rfc822;toshivichauhan@gmail.com> + 29 others); Sat, 16 Sep 2023 11:50:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233029AbjIPPuZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 16 Sep 2023 11:50:25 -0400 Received: from smtp.smtpout.orange.fr (smtp-17.smtpout.orange.fr [80.12.242.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 326B9CEA for <linux-kernel@vger.kernel.org>; Sat, 16 Sep 2023 08:50:18 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id hXYkq3WSEUbVihXYkqPVvW; Sat, 16 Sep 2023 17:50:16 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1694879416; bh=Apgbf+4k5j0y245gUGakuZZxFJFzdZ6jheOh94UyP3g=; h=From:To:Cc:Subject:Date; b=Q8rWoivz63vNREMgi47qen5kKm5KBYmXPC9+wiTnsNU0BR0L0+5jxXf7PDZasaVnz 8ohvQ7QiIGvPMW7oM6UDkEz1UoiUCfSztkHA56sK2HS+d3pcOXzwY6WGVKSPGG6i3W IzrpVvt9n8Ta9/PI3VF/yAoYXDNO/ikh/c1ZAnmobGbo9w2nsG6bVnazxgw/YWdzbH hEIZkK/glw1ZBa267LkMf41OzHQuaYxUEnrCGUFre8TBfQp8N2nxPjRaDHrk51PRoX 6GliQedPc22O89AzjZFflbhY6HcsYGwCiU5/U6KJC4GUnwmiknrThu+hXSQ9wzCLdN 3CKIA3VQ5geEQ== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 16 Sep 2023 17:50:16 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET <christophe.jaillet@wanadoo.fr> To: akpm@linux-foundation.org, andriy.shevchenko@linux.intel.com Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET <christophe.jaillet@wanadoo.fr> Subject: [PATCH resend] kstrtox: Remove strtobool() Date: Sat, 16 Sep 2023 17:50:11 +0200 Message-Id: <87e3cc2547df174cd5af1fadbf866be4ef9e8e45.1694878151.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 16 Sep 2023 08:51:26 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777217835000018850 X-GMAIL-MSGID: 1777217835000018850 |
Series |
[resend] kstrtox: Remove strtobool()
|
|
Commit Message
Christophe JAILLET
Sept. 16, 2023, 3:50 p.m. UTC
The conversion from strtobool() to kstrtobool() is completed.
So strtobool() can now be removed.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
v6.6-rc1 has no more reference to strtobool() (except a version local to
tools/)
The previous post is:
https://lore.kernel.org/all/23d2ea6b90579207e87cc1bf64fc4eed1ed9f173.1689885328.git.christophe.jaillet@wanadoo.fr/
---
include/linux/kstrtox.h | 5 -----
1 file changed, 5 deletions(-)
Comments
On Sat, Sep 16, 2023 at 05:50:11PM +0200, Christophe JAILLET wrote: > The conversion from strtobool() to kstrtobool() is completed. > So strtobool() can now be removed. Thank you for this cleaning up and previous work you have done to make this occur! Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
diff --git a/include/linux/kstrtox.h b/include/linux/kstrtox.h index 529974e22ea7..7fcf29a4e0de 100644 --- a/include/linux/kstrtox.h +++ b/include/linux/kstrtox.h @@ -147,9 +147,4 @@ extern long simple_strtol(const char *,char **,unsigned int); extern unsigned long long simple_strtoull(const char *,char **,unsigned int); extern long long simple_strtoll(const char *,char **,unsigned int); -static inline int strtobool(const char *s, bool *res) -{ - return kstrtobool(s, res); -} - #endif /* _LINUX_KSTRTOX_H */