public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [-tip tree] compile error in arch/ia64/kernel/acpi.c
@ 2008-12-31  9:16 Li Zefan
  2008-12-31  9:25 ` Li Zefan
  2008-12-31 11:05 ` Rusty Russell
  0 siblings, 2 replies; 4+ messages in thread
From: Li Zefan @ 2008-12-31  9:16 UTC (permalink / raw)
  To: Rusty Russell, Mike Travis; +Cc: Ingo Molnar, LKML

arch/ia64/kernel/acpi.c:205: error: conflicting types for 'total_cpus'
include/linux/smp.h:25: error: previous declaration of 'total_cpus' was here

due to [PATCH 3/3] cpumask: add sysfs displays for configured and disabled cpu maps
(http://lkml.org/lkml/2008/12/19/25)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [-tip tree] compile error in arch/ia64/kernel/acpi.c
  2008-12-31  9:16 [-tip tree] compile error in arch/ia64/kernel/acpi.c Li Zefan
@ 2008-12-31  9:25 ` Li Zefan
  2008-12-31 11:05 ` Rusty Russell
  1 sibling, 0 replies; 4+ messages in thread
From: Li Zefan @ 2008-12-31  9:25 UTC (permalink / raw)
  To: Li Zefan; +Cc: Rusty Russell, Mike Travis, Ingo Molnar, LKML, tony.luck

forgot to CC Tony Luck <tony.luck@intel.com>

Li Zefan wrote:
> arch/ia64/kernel/acpi.c:205: error: conflicting types for 'total_cpus'
> include/linux/smp.h:25: error: previous declaration of 'total_cpus' was here
> 
> due to [PATCH 3/3] cpumask: add sysfs displays for configured and disabled cpu maps
> (http://lkml.org/lkml/2008/12/19/25)
> 

Is this a sane fix?

----

From: Li Zefan <lizf@cn.fujitsu.com>
Subject: [PATCH] IA64: fix compile error

Remove static total_cpus in arch/ia64/kernel/acpi.c, use global
total_cpus defined in drivers/base/cpu.c.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
---
 arch/ia64/kernel/acpi.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c
index 54ae373..0553648 100644
--- a/arch/ia64/kernel/acpi.c
+++ b/arch/ia64/kernel/acpi.c
@@ -202,7 +202,6 @@ char *__init __acpi_map_table(unsigned long phys_addr, unsigned long size)
                             Boot-time Table Parsing
    -------------------------------------------------------------------------- */
 
-static int total_cpus __initdata;
 static int available_cpus __initdata;
 struct acpi_table_madt *acpi_madt __initdata;
 static u8 has_8259;
-- 
1.5.4.rc3



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [-tip tree] compile error in arch/ia64/kernel/acpi.c
  2008-12-31  9:16 [-tip tree] compile error in arch/ia64/kernel/acpi.c Li Zefan
  2008-12-31  9:25 ` Li Zefan
@ 2008-12-31 11:05 ` Rusty Russell
  2008-12-31 15:15   ` Kamalesh Babulal
  1 sibling, 1 reply; 4+ messages in thread
From: Rusty Russell @ 2008-12-31 11:05 UTC (permalink / raw)
  To: Li Zefan; +Cc: Mike Travis, Ingo Molnar, LKML, Stephen Rothwell, Luck, Tony

On Wednesday 31 December 2008 19:46:07 Li Zefan wrote:
> arch/ia64/kernel/acpi.c:205: error: conflicting types for 'total_cpus'
> include/linux/smp.h:25: error: previous declaration of 'total_cpus' was here
> 
> due to [PATCH 3/3] cpumask: add sysfs displays for configured and disabled cpu maps
> (http://lkml.org/lkml/2008/12/19/25)

Hmm, I don't know how this escaped linux-next.  But the fix is simple:

Subject: Remove IA64 definition of total_cpus now it's in core code

Impact: fix IA64 compile

Fortunately, they have exactly the same semantics.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c
--- a/arch/ia64/kernel/acpi.c
+++ b/arch/ia64/kernel/acpi.c
@@ -202,7 +202,6 @@ char *__init __acpi_map_table(unsigned l
                             Boot-time Table Parsing
    -------------------------------------------------------------------------- */
 
-static int total_cpus __initdata;
 static int available_cpus __initdata;
 struct acpi_table_madt *acpi_madt __initdata;
 static u8 has_8259;

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [-tip tree] compile error in arch/ia64/kernel/acpi.c
  2008-12-31 11:05 ` Rusty Russell
@ 2008-12-31 15:15   ` Kamalesh Babulal
  0 siblings, 0 replies; 4+ messages in thread
From: Kamalesh Babulal @ 2008-12-31 15:15 UTC (permalink / raw)
  To: Rusty Russell
  Cc: Li Zefan, Mike Travis, Ingo Molnar, LKML, Stephen Rothwell,
	Luck, Tony

* Rusty Russell <rusty@rustcorp.com.au> [2008-12-31 21:35:08]:

> On Wednesday 31 December 2008 19:46:07 Li Zefan wrote:
> > arch/ia64/kernel/acpi.c:205: error: conflicting types for 'total_cpus'
> > include/linux/smp.h:25: error: previous declaration of 'total_cpus' was here
> > 
> > due to [PATCH 3/3] cpumask: add sysfs displays for configured and disabled cpu maps
> > (http://lkml.org/lkml/2008/12/19/25)
> 
> Hmm, I don't know how this escaped linux-next.  But the fix is simple:
> 
Hi Rusty,

	This was caught in today's linux-next :)


> Subject: Remove IA64 definition of total_cpus now it's in core code
> 
> Impact: fix IA64 compile
> 
> Fortunately, they have exactly the same semantics.
> 
  Tested-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
> 
> diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c
> --- a/arch/ia64/kernel/acpi.c
> +++ b/arch/ia64/kernel/acpi.c
> @@ -202,7 +202,6 @@ char *__init __acpi_map_table(unsigned l
>                              Boot-time Table Parsing
>     -------------------------------------------------------------------------- */
> 
> -static int total_cpus __initdata;
>  static int available_cpus __initdata;
>  struct acpi_table_madt *acpi_madt __initdata;
>  static u8 has_8259;

-- 
Thanks & Regards,
Kamalesh Babulal,
Linux Technology Center,
IBM, ISTL.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-31 15:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-31  9:16 [-tip tree] compile error in arch/ia64/kernel/acpi.c Li Zefan
2008-12-31  9:25 ` Li Zefan
2008-12-31 11:05 ` Rusty Russell
2008-12-31 15:15   ` Kamalesh Babulal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox