From: Julien Grall <julien.grall@citrix.com>
To: Shannon Zhao <zhaoshenglong@huawei.com>,
xen-devel@lists.xen.org, jbeulich@suse.com
Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
Hanjun Guo <hanjun.guo@linaro.org>,
Tomasz Nowicki <tomasz.nowicki@linaro.org>,
shannon.zhao@linaro.org
Subject: Re: [PATCH v2 1/2] ACPI/table: Always count matched and successfully parsed entries
Date: Fri, 14 Aug 2015 11:50:05 +0100 [thread overview]
Message-ID: <55CDC7DD.7080403@citrix.com> (raw)
In-Reply-To: <1439523368-22256-2-git-send-email-zhaoshenglong@huawei.com>
Hi Shannon,
On 14/08/15 04:36, Shannon Zhao wrote:
> From: Tomasz Nowicki <tomasz.nowicki@linaro.org>
>
> Ported from Linux commit 4ceacd02f5a1795c5c697e0345ee10beef675290.
>
> acpi_parse_entries() allows to traverse all available table entries (aka
> subtables) by passing max_entries parameter equal to 0, but since its count
> variable is only incremented if max_entries is not 0, the function always
> returns 0 for max_entries equal to 0. It would be more useful if it returned
> the number of entries matched instead, so make it increment count in that
> case too.
>
> Acked-by: Grant Likely <grant.likely@linaro.org>
> Signed-off-by: Tomasz Nowicki <tomasz.nowicki@linaro.org>
> Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
You may want to add an indentation to show this is the commit message
from Linux and not Xen.
One of the reason behind that it's Grant acked the patch for Linux and
not Xen. The patch is nearly the same this time (only the lines change),
but it may happen that we need to fix a bit.
Regards,
--
Julien Grall
next prev parent reply other threads:[~2015-08-14 10:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-14 3:36 [PATCH v2 0/2] Port two ACPI fixes from Linux Shannon Zhao
2015-08-14 3:36 ` [PATCH v2 1/2] ACPI/table: Always count matched and successfully parsed entries Shannon Zhao
2015-08-14 10:50 ` Julien Grall [this message]
2015-08-14 11:00 ` Jan Beulich
2015-08-14 3:36 ` [PATCH v2 2/2] ACPI: disable ACPI cleanly when bad RSDP found Shannon Zhao
2015-08-14 10:24 ` [PATCH v2 0/2] Port two ACPI fixes from Linux Jan Beulich
2015-08-14 14:16 ` Shannon Zhao
2015-08-14 14:29 ` Jan Beulich
2015-08-14 14:37 ` Shannon Zhao
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=55CDC7DD.7080403@citrix.com \
--to=julien.grall@citrix.com \
--cc=hanjun.guo@linaro.org \
--cc=jbeulich@suse.com \
--cc=rafael.j.wysocki@intel.com \
--cc=shannon.zhao@linaro.org \
--cc=tomasz.nowicki@linaro.org \
--cc=xen-devel@lists.xen.org \
--cc=zhaoshenglong@huawei.com \
/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;
as well as URLs for NNTP newsgroup(s).