Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp385419rwb; Sun, 6 Nov 2022 07:25:13 -0800 (PST) X-Google-Smtp-Source: AMsMyM5E0jmXnGsdwBoYyeKhbCEDoonwNtQ/K0EH0aFSB/uFYw6XZ1SMg6pfnbhVQyoauu/8M45F X-Received: by 2002:a17:907:7b8a:b0:7ae:3957:f4e1 with SMTP id ne10-20020a1709077b8a00b007ae3957f4e1mr11732372ejc.720.1667748313567; Sun, 06 Nov 2022 07:25:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667748313; cv=none; d=google.com; s=arc-20160816; b=YwrI4Kk+GA76k2Kf7ckWuqefYgPnsDJHhceNgwYfjEV6BdgXbacQFmOEmJpY/wk54v vFA7AjGJQYkfx263AWNUG5phNs6k9vwhQyDXNWq8eUVVl6niqnZA4/33h0Z8D0US2Y2w 6ofUYhnQPo/DOj3beibuKcIZNQ8+2cX4aL+wzbvGum0qKoSuG/0WFpGr1kxjotw3bhfZ 6Kdr+JQ5OqiyR1OiwDzgPIuZ5xr3+7rUWVPbLKGSdUGbC7X6FC/p6MZJhAp/aklV2vgH CgdC0AeYnPMaM7vecD80PikLL1DSK+yBsgwDA7qGJ6XGXTCjZXsw5nBdtbiwg3EQrz7i fAsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bcF/g3FxS3vq7HBJy0REl0nrtkod0xAAfETE5zlqifI=; b=LWv0NydajyCO1tLK8jfw5KYGLnkRY/h2Ai/fL1Y74s2QWMpJYbU+Zv+UvVtCDmHPbo pcCKB75Nmo/PlTKEtZhpxyyeANagqQ1Snu2sXG9hN2oXXHlgx2IOKUkabhtaqTK63CYw tDELk0G4QWv+m8e4q5o0OVngQZSsS9aHX/OuNfiHWDY1hSbzRrC7V0EJgB1e3cV4Z3rA ZXmn2a5ASuRF5Koq5hY6Em611cycQSi7Z395QsMLqtRihuppLRGgJgwILr0PvmUEGgIK mWj41SgftcNZs4ygZ2Yosta5lrnE+Ln1LEp2apspEIvHZ4oAfmvgamJNXkEazg1wNcri F/gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FJCl8xXz; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cf20-20020a170906b2d400b007ad7a46a4b7si4499848ejb.454.2022.11.06.07.24.50; Sun, 06 Nov 2022 07:25:13 -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=@redhat.com header.s=mimecast20190719 header.b=FJCl8xXz; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230070AbiKFPEO (ORCPT + 96 others); Sun, 6 Nov 2022 10:04:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229832AbiKFPEM (ORCPT ); Sun, 6 Nov 2022 10:04:12 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 883042DED for ; Sun, 6 Nov 2022 07:03:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667746992; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bcF/g3FxS3vq7HBJy0REl0nrtkod0xAAfETE5zlqifI=; b=FJCl8xXzublitwiF6efe4nzk+IaVeYFn5ImJxiWRQS1UmVZ0IQUk1/TobRQoIjvvSsZv6g wWxOZQ7dMuVaFmCVxjDBaGCvX2vF1y/TSs3REiW+8F+q+NTzZWGxyhHyXiJ1KQMKgFUtAi TQVmON6aTm9jM+k/021abF6f8HYzNJo= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-386-y9_Wo--zPpiBQJMdw2Wb8Q-1; Sun, 06 Nov 2022 10:03:11 -0500 X-MC-Unique: y9_Wo--zPpiBQJMdw2Wb8Q-1 Received: by mail-wm1-f69.google.com with SMTP id bg21-20020a05600c3c9500b003c2acbff422so5567924wmb.0 for ; Sun, 06 Nov 2022 07:03:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bcF/g3FxS3vq7HBJy0REl0nrtkod0xAAfETE5zlqifI=; b=kXWyTd+VRZZfaEQu9h4RxQzgaGFEzTHHLxr78Iv7/+rh2flPjJ/wOOZxCBhYr+MOqV qY+v2jAenSyj8Vo9VVl0gv3KYeO91sBley2dtNfZnPvVFMIfFo7L/kiIOvw3ff6JWX6a f9BOoUYNzZ924W1LEBMqd4/+rWiXKHCHzzq/EJLfGhgJYAD4ut/4bPjLu+nugWyUSh+h EroHT3/MdmRDcH9ESO/TzXpASpE8+3st24yaqTDxfzRBEjjYOBvYyq25E3hoM/P1Ghm6 gPDJr3ujw2c/qaP4A4bFor1M84x4XBpdyFG1INu73+FbNOdPUMvCOeZKjQ1cTy2wGfXe N22g== X-Gm-Message-State: ACrzQf0lbgPa9dzMtb9ZhRMxwYr2uH71cMwVlyKZy5UmepUjQX+kvVFl XZ/KpAnxdfbdUSDRljweXh/XXB2lhAC6pm84i4czVAngnu/g+SyE4zWm2nyc2oF9l4ZPEu1ggFs ZkeO3/N8HzFkvQBgeDXCIG44= X-Received: by 2002:a05:600c:1e26:b0:3cf:a26c:40fd with SMTP id ay38-20020a05600c1e2600b003cfa26c40fdmr4425829wmb.178.1667746989135; Sun, 06 Nov 2022 07:03:09 -0800 (PST) X-Received: by 2002:a05:600c:1e26:b0:3cf:a26c:40fd with SMTP id ay38-20020a05600c1e2600b003cfa26c40fdmr4425807wmb.178.1667746988895; Sun, 06 Nov 2022 07:03:08 -0800 (PST) Received: from localhost (cpc111743-lutn13-2-0-cust979.9-3.cable.virginm.net. [82.17.115.212]) by smtp.gmail.com with ESMTPSA id n37-20020a05600c3ba500b003cfa3a12660sm9045872wms.1.2022.11.06.07.03.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Nov 2022 07:03:08 -0800 (PST) Date: Sun, 6 Nov 2022 15:03:07 +0000 From: Aaron Tomlin To: Christophe JAILLET Cc: Luis Chamberlain , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-modules@vger.kernel.org Subject: Re: [PATCH 18/30] module: Use kstrtobool() instead of strtobool() Message-ID: <20221106150307.ti4xd6ehh4ce2e25@ava.usersys.com> X-PGP-Key: http://pgp.mit.edu/pks/lookup?search=atomlin%40redhat.com X-PGP-Fingerprint: 7906 84EB FA8A 9638 8D1E 6E9B E2DE 9658 19CC 77D6 References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 On Tue 2022-11-01 22:14 +0100, Christophe JAILLET wrote: > 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]. > > [1]: https://lore.kernel.org/all/cover.1667336095.git.christophe.jaillet@wanadoo.fr/ > --- > kernel/module/main.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/kernel/module/main.c b/kernel/module/main.c > index ff2dfd1f548d..79e17522e196 100644 > --- a/kernel/module/main.c > +++ b/kernel/module/main.c > @@ -17,6 +17,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -2649,7 +2650,7 @@ static int unknown_module_param_cb(char *param, char *val, const char *modname, > int ret; > > if (strcmp(param, "async_probe") == 0) { > - if (strtobool(val, &mod->async_probe_requested)) > + if (kstrtobool(val, &mod->async_probe_requested)) > mod->async_probe_requested = true; > return 0; > } > -- > 2.34.1 > Reviewed-by: Aaron Tomlin -- Aaron Tomlin