From: hanjun.guo@linaro.org (Hanjun Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 3/4] arm64, acpi, numa: NUMA support based on SRAT and SLIT
Date: Thu, 14 Jan 2016 11:48:02 +0800 [thread overview]
Message-ID: <56971A72.3070409@linaro.org> (raw)
In-Reply-To: <20160113230400.GB31343@rric.localdomain>
On 2016/1/14 7:04, Robert Richter wrote:
> On 27.11.15 15:54:55, Shannon Zhao wrote:
>> Hi,
>>
>> On 2015/11/18 2:25, Ganapatrao Kulkarni wrote:
>>> +/* Callback for Proximity Domain -> ACPI processor UID mapping */
>>> +void __init acpi_numa_gicc_affinity_init(struct acpi_srat_gicc_affinity *pa)
>>> +{
>>> + int pxm, node;
>>> + u64 mpidr;
>>> + static int cpus_in_srat;
>>> +
>>> + if (srat_disabled())
>>> + return;
>>> +
>>> + if (pa->header.length < sizeof(struct acpi_srat_gicc_affinity)) {
>>> + bad_srat();
>>> + return;
>>> + }
>>> +
>>> + if (!(pa->flags & ACPI_SRAT_GICC_ENABLED))
>>> + return;
>>> +
>>> + if (cpus_in_srat >= NR_CPUS) {
>>> + pr_warn_once("SRAT: cpu_to_node_map[%ld] is too small, may not be able to use all cpus\n",
>>> + NR_CPUS);
>>> + return;
>>> + }
>>
>> arch/arm64/kernel/acpi_numa.c: In function 'acpi_numa_gicc_affinity_init':
>> arch/arm64/kernel/acpi_numa.c:137:3: warning: format '%ld' expects
>> argument of type 'long int', but argument 2 has type 'int' [-Wformat=]
>> pr_warn_once("SRAT: cpu_to_node_map[%ld] is too small, may not be
>> able to use all cpus\n",
>
> Right, should be changed to:
>
> pr_warn_once("SRAT: cpu_to_node_map[%d] ...
Thanks, I will update it in next version.
Hanjun
next prev parent reply other threads:[~2016-01-14 3:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-17 18:25 [PATCH v2 0/4] ACPI based NUMA support for ARM64 Ganapatrao Kulkarni
2015-11-17 18:25 ` [PATCH v2 1/4] acpi, numa: Use pr_fmt() instead of printk Ganapatrao Kulkarni
2015-11-17 18:25 ` [PATCH v2 2/4] acpi, numa: Replace ACPI_DEBUG_PRINT() with pr_debug() Ganapatrao Kulkarni
2015-11-17 18:25 ` [PATCH v2 3/4] arm64, acpi, numa: NUMA support based on SRAT and SLIT Ganapatrao Kulkarni
2015-11-27 7:54 ` Shannon Zhao
2016-01-13 23:04 ` Robert Richter
2016-01-14 3:48 ` Hanjun Guo [this message]
2015-12-18 16:23 ` Lorenzo Pieralisi
2015-12-22 12:34 ` Hanjun Guo
2015-12-22 13:08 ` Ganapatrao Kulkarni
2015-11-17 18:25 ` [PATCH v2 4/4] acpi, numa: Enable ACPI based NUMA on ARM64 Ganapatrao Kulkarni
2015-11-27 9:25 ` [PATCH v2 0/4] ACPI based NUMA support for ARM64 Shannon Zhao
2015-11-27 13:28 ` Hanjun Guo
2016-01-17 5:13 ` Jon Masters
2016-01-18 6:47 ` Ganapatrao Kulkarni
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=56971A72.3070409@linaro.org \
--to=hanjun.guo@linaro.org \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).