Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4B1CC2D0E4 for ; Tue, 24 Nov 2020 00:59:05 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5DCAB20729 for ; Tue, 24 Nov 2020 00:59:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b="UTVFd4MY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5DCAB20729 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.35311.66768 (Exim 4.92) (envelope-from ) id 1khMfL-0006cO-UP; Tue, 24 Nov 2020 00:58:43 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 35311.66768; Tue, 24 Nov 2020 00:58:43 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khMfL-0006cH-RN; Tue, 24 Nov 2020 00:58:43 +0000 Received: by outflank-mailman (input) for mailman id 35311; Tue, 24 Nov 2020 00:58:42 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khMfK-0006cC-Qb for xen-devel@lists.xenproject.org; Tue, 24 Nov 2020 00:58:42 +0000 Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id ce88a05e-d02b-4883-989b-0dccbfe11bfc; Tue, 24 Nov 2020 00:58:41 +0000 (UTC) Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khMfK-0006cC-Qb for xen-devel@lists.xenproject.org; Tue, 24 Nov 2020 00:58:42 +0000 X-Inumbo-ID: ce88a05e-d02b-4883-989b-0dccbfe11bfc Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id ce88a05e-d02b-4883-989b-0dccbfe11bfc; Tue, 24 Nov 2020 00:58:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1606179521; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=AXk/zYR173btMvz+fOH+QB2vsjO3ci4oUuKHh0S1jBc=; b=UTVFd4MYtGWT32BNHsFI3B0kpNABSWgRk6rKlhavvjV/7GFzffgAGz41 LPQesFRI9kkVtASQsPXoKedZoCqXKjbhxvdgKJAFXG5x5UmpppFRgWKAG rtF4JTicVyUyINroErDACtj5hVoQ9g9LQf94etRf7D7Ww+iT++7A267XO c=; Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: 6K45fDnuX7TsL/uMrd1UGzoTP9lDxlozUYwdwgMcu+Vn/qruYU3plmNu/YBrw4I3/qsCYCPKqF 2Gk/JzBVrtI8L84wNNYpDVQD8jfg4N1zuEiMochvgyB5tPfeEVhu+S3HtJx3AMcCG39rWsnoZ7 16hxb/JqPDNTqOaAw2/uk8JQnsdLxtuPA0C9bX37JPs/HmZrluSHVc3yWD5ACDNA2YCKBhqsO9 ulgrH2WNSfg0xCuyIYGcPBBN+Jv1qx8FTvKSmIzVhIMLMt26GoIICjed41ctTu1zkXRcGY0Mxy zm4= X-SBRS: None X-MesageID: 32135498 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.78,364,1599537600"; d="scan'208";a="32135498" Subject: Re: [PATCH v2 4/8] lib: move parse_size_and_unit() To: Jan Beulich , "xen-devel@lists.xenproject.org" CC: George Dunlap , Ian Jackson , Julien Grall , Wei Liu , Stefano Stabellini References: From: Andrew Cooper Message-ID: <1bd906ff-0b37-07de-75ab-84a169151c2d@citrix.com> Date: Tue, 24 Nov 2020 00:58:12 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Language: en-GB X-ClientProxiedBy: AMSPEX02CAS02.citrite.net (10.69.22.113) To FTLPEX02CL04.citrite.net (10.13.108.177) On 23/10/2020 11:17, Jan Beulich wrote: > ... into its own CU, to build it into an archive. > > Signed-off-by: Jan Beulich > --- > xen/common/lib.c | 39 ---------------------------------- > xen/lib/Makefile | 1 + > xen/lib/parse-size.c | 50 ++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 51 insertions(+), 39 deletions(-) > create mode 100644 xen/lib/parse-size.c What is the point of turning this into a library?  It isn't a leaf function (calls simple_strtoull()) and doesn't have any any plausible way of losing all its callers in various configurations (given its direct use by the cmdline parsing logic). ~Andrew