From: Shannon Zhao <zhaoshenglong@huawei.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: shannon.zhao@linaro.org, xen-devel@lists.xen.org
Subject: Re: [PATCH 1/2] ACPI/table: Always count matched and successfully parsed entries
Date: Wed, 12 Aug 2015 16:58:50 +0800 [thread overview]
Message-ID: <55CB0ACA.9080706@huawei.com> (raw)
In-Reply-To: <55CB25380200007800099FD5@prv-mh.provo.novell.com>
On 2015/8/12 16:51, Jan Beulich wrote:
>>>> On 04.08.15 at 06:19, <zhaoshenglong@huawei.com> wrote:
>> From: Shannon Zhao <shannon.zhao@linaro.org>
>
> This is not true. All you did is port a Linux change.
>
Will change this.
>> 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.
>>
>> Signed-off-by: Tomasz Nowicki <tomasz.nowicki@linaro.org>
>> Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
>
> Please mention the respective Linux commit. Without that I would
> complain that "more useful" is too fuzzy (as in not making clear to
> whom and why).
>
Ok, will add it. Thanks.
--
Shannon
next prev parent reply other threads:[~2015-08-12 8:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-04 4:19 [PATCH 0/2] two minor ACPI fixes Shannon Zhao
2015-08-04 4:19 ` [PATCH 1/2] ACPI/table: Always count matched and successfully parsed entries Shannon Zhao
2015-08-12 8:51 ` Jan Beulich
2015-08-12 8:58 ` Shannon Zhao [this message]
2015-08-04 4:19 ` [PATCH 2/2] ACPI/table: Make acpi_table_init return meaningful value Shannon Zhao
2015-08-12 8:58 ` Jan Beulich
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=55CB0ACA.9080706@huawei.com \
--to=zhaoshenglong@huawei.com \
--cc=JBeulich@suse.com \
--cc=shannon.zhao@linaro.org \
--cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.