login
Header Space

 
 

Re: sh migor_defconfig build breakage

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Adrian Bunk <bunk@...>
Cc: Ingo Molnar <mingo@...>, <lethal@...>, <linux-sh@...>, <linux-kernel@...>, Andrew Morton <akpm@...>
Date: Thursday, May 8, 2008 - 6:12 pm

Mike Travis wrote:
...


Ahh, this is what caused the error.  In include/asm-generic/topology.h
cpu_to_node is only defined now if NUMA is turned off.

#ifndef CONFIG_NUMA

/* Other architectures wishing to use this simple topology API should fill
   in the below functions as appropriate in their own <asm/topology.h> file. */
#ifndef cpu_to_node
#define cpu_to_node(cpu)        ((void)(cpu),0)
#endif
...

So before my change arch 'sh' used the default define whether NUMA was
set or not.

An alternative would be to change all the arch's that define cpu_to_node
as an inline to:

#define cpu_to_node(cpu)	_cpu_to_node(cpu)
static inline int _cpu_to_node(int cpu)
{
	...
}

Then include/linux/topology could define cpu_to_node if it's not already
defined.

Andrew or Ingo - do you have any preferences?

Thanks,
Mike

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sh migor_defconfig build breakage, Adrian Bunk, (Thu May 8, 4:39 pm)
Re: sh migor_defconfig build breakage, Mike Travis, (Thu May 8, 5:19 pm)
Re: sh migor_defconfig build breakage, Mike Travis, (Thu May 8, 5:31 pm)
Re: sh migor_defconfig build breakage, Mike Travis, (Thu May 8, 5:55 pm)
Re: sh migor_defconfig build breakage, Mike Travis, (Thu May 8, 6:12 pm)
Re: sh migor_defconfig build breakage, Paul Mundt, (Thu May 8, 8:50 pm)
Re: sh migor_defconfig build breakage, Mike Travis, (Thu May 8, 9:21 pm)
Re: sh migor_defconfig build breakage, Paul Mundt, (Thu May 8, 9:52 pm)
Re: sh migor_defconfig build breakage, Adrian Bunk, (Thu May 8, 5:42 pm)
speck-geostationary