Received: by 10.223.176.5 with SMTP id f5csp74905wra; Fri, 2 Feb 2018 17:04:46 -0800 (PST) X-Google-Smtp-Source: AH8x224Ja6rneZMV3CoXx2yCxUiKEfgwzM5SFZ3+ttUyTHVJbn4fPz7y/JR7QfPk3fq34EWMcyH1 X-Received: by 2002:a17:902:be06:: with SMTP id r6-v6mr7201595pls.448.1517619886274; Fri, 02 Feb 2018 17:04:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517619886; cv=none; d=google.com; s=arc-20160816; b=fHEloR8oJxPDtBXbxn3ggQe/+HLW1i4lgB1enUSrq5z1+3WHSAcNuhjh7sSut6DTOx q4U9M7mpuhnNKFxsS7V3+lo1KELEXA8TFvM8WIQJ+KH1sk4TFLSvfbzFSRTM+IcWtKAr 0Gv+JSp3AmmfEm2vlWbA1yGxp+EoXTN7J96MQtLqjDTcDsunlYwKbZChYBvA8A9uBuCS UigcGrW9SkcEciaDhIq65YEqTtk0Utd7eidd8hQcAtX8KDCGLXZHx/bLN1iE/cVSVtN5 bNJh0YItIaeqII9xR3gPbqz1A+7w2/tJvno6eyQQSv1frR48xraPVFy08aMib/l12HXZ 8sMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=GX6U4bD7fPY/PhAsY6LPmTMiT8YrVZ5+NCSGrJY0H94=; b=Ir7NRhi/ixyH5B2hpzePbfpY/xCMIwAyTJzgZAZ6QPPcommzTDZcQJu2bNXUGAswyP UccAlAGwsv8JjqKQAFNPSva/AVV1LUaEukpXRs2CCQEIqMNYsHV969L7LxIYaXP0p+2R pQEYRr3rUJSPWg+6HZlwhRnq72of55CDbEHHUTiP5pyDqA0/InPHCff/NAwA6FLVbdfi J+1vo7u2vFqJDeJxn9xReCrYOkIUvQEH33jYwyOI2xkG4QuiIRsrkOo1X8xyztOdmoad aHO7T+lR/Uz89jKU8cd0Vxck5rahZLyT4exnHw2OmIBMZDn3+BDRXEZEq/X8z+exCHOd TgtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=t9ZqHN/l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l1-v6si2857607pli.690.2018.02.02.17.04.29; Fri, 02 Feb 2018 17:04:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=t9ZqHN/l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752313AbeBBXGz (ORCPT + 99 others); Fri, 2 Feb 2018 18:06:55 -0500 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:11856 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752125AbeBBXGf (ORCPT ); Fri, 2 Feb 2018 18:06:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1517612795; x=1549148795; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=GX6U4bD7fPY/PhAsY6LPmTMiT8YrVZ5+NCSGrJY0H94=; b=t9ZqHN/lA+EVr/E1mcPT8u0rMzC34Em8eBHThoL3xhlFTwkBf6wYGbtR WPQh00+JVkwbB1D15m2wv7YkE1n+Uix+TYnJ/+m+4379BNpqs0nCmApnu 1jUkpwn+a/GPVewCfJ6/Qa0rh287DOuJ4v1ekCSJJgz3e1ihGyZkc0N5E E=; X-IronPort-AV: E=Sophos;i="5.46,451,1511827200"; d="scan'208";a="592663351" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-2a-53356bf6.us-west-2.amazon.com) ([10.47.22.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Feb 2018 23:06:30 +0000 Received: from u7588a65da6b65f.ant.amazon.com (pdx2-ws-svc-lb17-vlan3.amazon.com [10.247.140.70]) by email-inbound-relay-2a-53356bf6.us-west-2.amazon.com (8.14.7/8.14.7) with ESMTP id w12N6Rp8033171 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 2 Feb 2018 23:06:29 GMT Received: from u7588a65da6b65f.ant.amazon.com (localhost [127.0.0.1]) by u7588a65da6b65f.ant.amazon.com (8.15.2/8.15.2/Debian-3) with ESMTP id w12N6Q40014932; Sat, 3 Feb 2018 00:06:26 +0100 Subject: Re: [PATCH] x86: e820: Implement a range manipulation operator To: Andy Shevchenko Cc: Ingo Molnar , Thomas Gleixner , x86@kernel.org, "H. Peter Anvin" , Linux Kernel Mailing List References: <20180201231313.28458-1-jschoenh@amazon.de> From: "=?UTF-8?Q?Jan_H._Sch=c3=b6nherr?=" Message-ID: Date: Sat, 3 Feb 2018 00:06:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/02/2018 09:50 PM, Andy Shevchenko wrote: > On Fri, Feb 2, 2018 at 1:13 AM, Jan H. Schönherr wrote: > >> + [KNL,ACPI] Convert memory within the specified region >> + from to . If "-" is left >> + out, the whole region will be marked as , >> + even if previously unavailable. If "+" is left >> + out, matching memory will be removed. Types are >> + specified as e820 types, eg, 1==RAM, 2==reserved, >> + 3==ACPI, 12==PRAM. > > s/==/ = /g Sure. I've also properly abbreviated that "e.g.". >> + } else if (*p == '%') { >> + enum e820_type from = 0, to = 0; >> + >> + start_at = memparse(p + 1, &p); >> + if (*p == '-') >> + from = simple_strtoull(p + 1, &p, 0); >> + if (*p == '+') >> + to = simple_strtoull(p + 1, &p, 0); >> + if (*p != 0) > > if (*p) > > or > > if (*p != '\0') > > ? Something similar to the latter is used in the function already. The latter it is. Regards Jan