Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp412108rdb; Thu, 21 Dec 2023 12:55:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IERh5RqInv7CX9g5hZbkUz9eP/JawXqEXvp5ssySM6gBQqDhOwcZw9heF09jpvyXp8IlD+T X-Received: by 2002:ac2:4d94:0:b0:50e:37cb:961d with SMTP id g20-20020ac24d94000000b0050e37cb961dmr110481lfe.19.1703192140237; Thu, 21 Dec 2023 12:55:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703192140; cv=none; d=google.com; s=arc-20160816; b=sYF67t2EfpxP0npiPkvFrKQDCUaV88PJHgN+HYR4UDW3Y42/GhCoP/92FE/6eOoZkK rfigHAOhbL9YmknluCxWdSb9KN5IjJjqaHYJn4HmOO13wQSC7F5M5eEmmoejXhYF4zhg z875HnI+dXeEUhtTv6T0hNyzA2vEQJWtKi4mh+tA05MKWwVlkIDdmaKQ5eALyi1Aia81 193Yo74NqS7qF0olqfMSRb1ez6nbbR2jgCdWisz91KjjBJpMJ43N5PDcDf8Bb7m8Y8qS VlcNAi4gbRyG86chd27NYX+vCXG8STRm7akfdLz3+EHOBXXfQfm6FVBr/SmoTUxAaeZ+ 0Q8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=csgx3LB2EwwiFOLKFV++H0zkaUnWmX3ea5s2f7pAtbg=; fh=To9rHRm2VvMK39WJmPk8KRCcHngjgZRvEgE+beUPeJo=; b=S6DXislZ2UwwK51dVpYEP1uwE3i492wGB8j9Rf7+DUvMe9unKYKU6iW+Vov+3wYuSS pSLH4dsFkiAdYeF4OTQU8kqwPzvtEKA1eAW4+po3rHewadA/Sp8OIDU7Nb8rNIcPIB8t JkYR0yWJKJptbP+F+5IJVPG1FkXgA0+xUfi9vHkxMQ6DRoyOiMLCxLhatDc213XQ3qGd CIPtTYEmhNWKwLYppaygFIa0A8CSysLv/EMtNjuUBbV9n1hyIeAcddKqFGXphRLvt7jf pnHn1+nsU+G9WeCvl2oCibREmAwyqjyCEy7iDoVryYm/xNo4doEHKwl5JK2ZLQ5iSy5T EuBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PdEgArsV; spf=pass (google.com: domain of linux-kernel+bounces-9066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id eg49-20020a05640228b100b00554054403b9si1112628edb.11.2023.12.21.12.55.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 12:55:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PdEgArsV; spf=pass (google.com: domain of linux-kernel+bounces-9066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EC5241F25CB4 for ; Thu, 21 Dec 2023 20:55:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C69F276DA1; Thu, 21 Dec 2023 20:55:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="PdEgArsV" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DF2C55E6C; Thu, 21 Dec 2023 20:55:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703192127; x=1734728127; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=0w8QXE+4um/f5qVFcFax66VvCFBNWrGXVxaOHPrwoC8=; b=PdEgArsV64sNjfL79uEHaPxoMfe5PY/SRnXkLboQLqCohwPsnf0aqNpc bNNyHfrYC4pZIgQDoSGk3Xq2gvI9U7OhFykYiLPgDDUshg6d8lRuLnaNF By3z49z7ooxoWNfyIpUcjaBxLzGIc8lx2RSHpKJuBszLogQPq7o4vSlMf yRiomA4gqcecBQKSlTK7eBadkr/JdnKJLP+NB6fhcOM4r++Ky9cl/TH3U LSUiYk5d08aV9mY9+fhO2dZdsnoTRs4J1pMuvbWEsRcWWsE/7cSfRzPTt 6wNquGdpfopGmeRkVdX1Q0ql9StGY5gufISyEG8gAnBEzz6jXs+vWQp43 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10931"; a="460370082" X-IronPort-AV: E=Sophos;i="6.04,294,1695711600"; d="scan'208";a="460370082" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2023 12:55:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10931"; a="920436865" X-IronPort-AV: E=Sophos;i="6.04,294,1695711600"; d="scan'208";a="920436865" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga001.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2023 12:55:24 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rGQ4f-00000007yda-13KS; Thu, 21 Dec 2023 22:55:21 +0200 Date: Thu, 21 Dec 2023 22:55:20 +0200 From: Andy Shevchenko To: Qu Wenruo Cc: Qu Wenruo , Alexey Dobriyan , Andrew Morton , linux-btrfs@vger.kernel.org, Christophe JAILLET , linux-kernel@vger.kernel.org, David Sterba Subject: Re: [PATCH 1/2] lib/strtox: introduce kstrtoull_suffix() helper Message-ID: References: <15cf089f-be9a-4762-ae6b-4791efca6b44@gmx.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Fri, Dec 22, 2023 at 07:07:31AM +1030, Qu Wenruo wrote: > On 2023/12/21 22:30, Andy Shevchenko wrote: ... > Then what about going the following path for the whole memparse() rabbit > hole? > > - Mark the old memparse() deprecated > - Add a new function memparse_safe() (or rename the older one to > __memparse, and let the new one to be named memparse()?) > - Add unit test for the new memparse_safe() or whatever the name is > - Try my best to migrate as many call sites as possible > Only the two btrfs ones I'm 100% confident for now > > Would that be a sounding plan? As long as it does not break any ABI (like kernel command line parsing), sounds good to me. -- With Best Regards, Andy Shevchenko