Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4787215ioa; Wed, 27 Apr 2022 11:06:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa5dOAZBho+ZXf98ltjwwgyquX5NbCV/Jb2UWDSF9n9S9g2Eoe9m55+W3SgwUj/VoUbURq X-Received: by 2002:a05:6638:268e:b0:32a:842b:9176 with SMTP id o14-20020a056638268e00b0032a842b9176mr12449591jat.188.1651082787615; Wed, 27 Apr 2022 11:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651082787; cv=none; d=google.com; s=arc-20160816; b=vN3m+eZ3RWlU0GPYTKCqA4t2X2LQ4neFTtR20VhSC/TTezCohTrz7jU1TjXXK0NrlD WxA74fcKtQystC5QOqvMOKGLhpLsfcIlVT1Ymcr8P/jHZnCtz8WExT6QKLF2+9ceXFky CX7NJ/HCU4AomZDHyAj6gaVf5PWJzz+V6yMkV42Q+Soa9Iy8wzt7BQGYxR7dGO2cZrCE rUhpSKJdEViGiQGKYVIT8rWX4hyO5/fMigQR5lhOmZC/sE6JzR8Pgs0zT0GL++PYuptg W2TlYdB+4n70KvakKY76aYQCS7FvesI9v1MQ1WYYwmGELsG0OMRebkVaQ3cI4oSBil6K hJBw== 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:subject:cc:to:from:date :dkim-signature; bh=zmdANm0BHxfdnXd3nuuBPBhhElUw2zoT9fkRHNbAmIA=; b=XZwO9N02Vt1EpPwFodxxv2sfNaUyt2veD0f1l+bSYemA3OWhQVNnulZuipHDlUxVao 1TUeWgncnsXAlfHrOLejiKK8D+7xJO/kHaQQpzQBsFhr/EkyXj1LqX8JCHm8FzZQwwhs UxNiAsH82Uqh8OgIPV2uOR0SCuk9P0ZX2PG3rQNsQ/5brdSpAgBY03HCY+ntnZI17L3b cUgEyLweUse/Lvi8E7pK4yoJPm4LDI3UpSNMdkzl4v+wJFUrDRDpuvOfV7b9ihpGGhYk HqJeFK6sUEerEjgaAfDZxlkYTpVDcdjVRVk8lOcse5fg2tvqqedQYDEgqGwnO5xSS5De KE+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=Q7ZoWlob; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 3-20020a021d03000000b0032afd68c8aasi1013837jaj.123.2022.04.27.11.06.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 11:06:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=Q7ZoWlob; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 04E22AFB13; Wed, 27 Apr 2022 10:39:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244334AbiD0RmZ (ORCPT + 99 others); Wed, 27 Apr 2022 13:42:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244313AbiD0RmX (ORCPT ); Wed, 27 Apr 2022 13:42:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 668206D949 for ; Wed, 27 Apr 2022 10:39:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 00E71B828AB for ; Wed, 27 Apr 2022 17:39:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DBE1C385AD; Wed, 27 Apr 2022 17:39:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1651081142; bh=28m7Jmv/cP/fZD1raKhoHmAzZkh4E0aSzDdckRwT6ZY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Q7ZoWlobJC5xvGAziA+7AvdRJm0UfBN4J2xnMhAHkyexBIn4sf28UWOOYfofiP+JO LLZqd0luZ/XfSv5h3Dt1IL0MFQ1lzk15K0+oZr1DWwAq2DNIlXHNEk53D4L6xDo8kp m+v4BqedM8llnYyA03M4lX47FFYkNgNSN5CnsqGU= Date: Wed, 27 Apr 2022 10:39:01 -0700 From: Andrew Morton To: Andy Shevchenko Cc: Jagdish Gediya , linux-kernel@vger.kernel.org, linux-mm@kvack.org, willy@infradead.org, ying.huang@intel.com, dave.hansen@intel.com, Jonathan.Cameron@huawei.com, adobriyan@gmail.com, rf@opensource.cirrus.com, pmladek@suse.com Subject: Re: [PATCH v3 1/2] lib/kstrtox.c: Add "false"/"true" support to kstrtobool() Message-Id: <20220427103901.7567e7058dcaa3068056b2ed@linux-foundation.org> In-Reply-To: References: <20220426180203.70782-1-jvgediya@linux.ibm.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_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 Wed, 27 Apr 2022 18:13:43 +0300 Andy Shevchenko wrote: > On Tue, Apr 26, 2022 at 11:32:02PM +0530, Jagdish Gediya wrote: > > At many places in kernel, It is necessary to convert sysfs input > > to corrosponding bool value e.g. "false" or "0" need to be converted > > corresponding > > > to bool false, "true" or "1" need to be converted to bool true, > > places where such conversion is needed currently check the input > > string manually, kstrtobool() can be utilized at such places but > > currently it doesn't have support to accept "false"/"true". > > > > Add support to accept "false"/"true" as valid string in kstrtobool(). > > Andrew, this patch still needs a bit of work. I fixed the two issues you identified in this email. Is there more to do?