mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jan H. Schönherr" <jschoenh@amazon.de>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86: e820: Implement a range manipulation operator
Date: Sat, 3 Feb 2018 00:06:26 +0100	[thread overview]
Message-ID: <d4741079-eeda-c063-795f-60f5f1036a25@amazon.de> (raw)
In-Reply-To: <CAHp75Vf--xVkNoEaNRntzygQYHorbNQYhSCDVcxyLAz2PHEWEQ@mail.gmail.com>

On 02/02/2018 09:50 PM, Andy Shevchenko wrote:
> On Fri, Feb 2, 2018 at 1:13 AM, Jan H. Schönherr <jschoenh@amazon.de> wrote:
> 
>> +                       [KNL,ACPI] Convert memory within the specified region
>> +                       from <oldtype> to <newtype>. If "-<oldtype>" is left
>> +                       out, the whole region will be marked as <newtype>,
>> +                       even if previously unavailable. If "+<newtype>" 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

  reply	other threads:[~2018-02-02 23:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-01 23:13 Jan H. Schönherr
2018-02-02 20:50 ` Andy Shevchenko
2018-02-02 23:06   ` Jan H. Schönherr [this message]
2018-02-02 23:10     ` [PATCH v2] " Jan H. Schönherr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d4741079-eeda-c063-795f-60f5f1036a25@amazon.de \
    --to=jschoenh@amazon.de \
    --cc=andy.shevchenko@gmail.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®