From: Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Takayoshi Kochi <t-kochi-UDFczIW9X1d8UrSeD/g0lQ@public.gmane.org>
Cc: ACPI Developers
<acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>,
kaos-sJ/iWh9BUns@public.gmane.org,
Tony Luck <tony.luck-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Subject: Re: 2.6.8-rc2 acpi numa warnings
Date: 26 Aug 2004 00:21:03 -0400 [thread overview]
Message-ID: <1093494063.7761.7.camel@dhcppc4> (raw)
In-Reply-To: <20040729.104437.78704661.t-kochi-UDFczIW9X1d8UrSeD/g0lQ@public.gmane.org>
Applied.
thanks,
-Len
On Wed, 2004-07-28 at 21:44, Takayoshi Kochi wrote:
> Hi Len,
>
> Please apply the attached patch to prevent warning messages
> in drivers/acpi/numa.c. Reported by Keith Owens.
> This applies to 2.6.8-rc2 or 2.6.8-rc2-mm1.
>
> From: Keith Owens <kaos-sJ/iWh9BUns@public.gmane.org>
> Subject: 2.6.8-rc2 acpi numa warnings
> Date: Sun, 18 Jul 2004 18:55:21 +1000
>
> > Building 2.6.8-rc2 for ia64 NUMA gets these warnings.
> >
> > drivers/acpi/numa.c: In function `acpi_table_print_srat_entry':
> > drivers/acpi/numa.c:55: warning: unused variable `p'
> > drivers/acpi/numa.c:65: warning: unused variable `p'
> > drivers/acpi/numa.c: In function `acpi_numa_init':
> > drivers/acpi/numa.c:179: warning: passing arg 2 of
> `acpi_table_parse_srat' from incompatible pointer type
> > drivers/acpi/numa.c:182: warning: passing arg 2 of
> `acpi_table_parse_srat' from incompatible pointer type
> >
>
> Signed-off-by: Takayoshi Kochi <t-kochi-UDFczIW9X1d8UrSeD/g0lQ@public.gmane.org>
>
> --- linux-2.6.7.orig/drivers/acpi/numa.c 2004-07-28
> 21:55:43.694641000 +0900
> +++ linux-2.6.7/drivers/acpi/numa.c 2004-07-28 22:07:45.154962520
> +0900
> @@ -51,6 +51,7 @@
> switch (header->type) {
>
> case ACPI_SRAT_PROCESSOR_AFFINITY:
> +#ifdef ACPI_DEBUG_OUTPUT
> {
> struct acpi_table_processor_affinity *p =
> (struct acpi_table_processor_affinity*)
> header;
> @@ -58,9 +59,11 @@
> p->apic_id, p->lsapic_eid, p->proximity_domain,
> p->flags.enabled?"enabled":"disabled"));
> }
> +#endif /* ACPI_DEBUG_OUTPUT */
> break;
>
> case ACPI_SRAT_MEMORY_AFFINITY:
> +#ifdef ACPI_DEBUG_OUTPUT
> {
> struct acpi_table_memory_affinity *p =
> (struct acpi_table_memory_affinity*) header;
> @@ -70,6 +73,7 @@
> p->flags.enabled ? "enabled" : "disabled",
> p->flags.hot_pluggable ? " hot-pluggable" :
> ""));
> }
> +#endif /* ACPI_DEBUG_OUTPUT */
> break;
>
> default:
> @@ -103,7 +107,9 @@
>
>
> static int __init
> -acpi_parse_processor_affinity (acpi_table_entry_header *header)
> +acpi_parse_processor_affinity (
> + acpi_table_entry_header *header,
> + const unsigned long end)
> {
> struct acpi_table_processor_affinity *processor_affinity;
>
> @@ -121,7 +127,9 @@
>
>
> static int __init
> -acpi_parse_memory_affinity (acpi_table_entry_header *header)
> +acpi_parse_memory_affinity (
> + acpi_table_entry_header *header,
> + const unsigned long end)
> {
> struct acpi_table_memory_affinity *memory_affinity;
>
>
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
prev parent reply other threads:[~2004-08-26 4:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <26489.1090140921@ocs3.ocs.com.au>
[not found] ` <26489.1090140921-1LO6/iIh+iQ0n/F98K4Iww@public.gmane.org>
2004-07-29 1:44 ` 2.6.8-rc2 acpi numa warnings Takayoshi Kochi
[not found] ` <20040729.104437.78704661.t-kochi-UDFczIW9X1d8UrSeD/g0lQ@public.gmane.org>
2004-08-26 4:21 ` Len Brown [this message]
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=1093494063.7761.7.camel@dhcppc4 \
--to=len.brown-ral2jqcrhueavxtiumwx3w@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=kaos-sJ/iWh9BUns@public.gmane.org \
--cc=t-kochi-UDFczIW9X1d8UrSeD/g0lQ@public.gmane.org \
--cc=tony.luck-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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.