Re: [PATCH] alpha: fix percpu build breakage

From: Ivan Kokshaysky
Date: Sun Jun 28 2009 - 11:50:32 EST


On Sun, Jun 28, 2009 at 09:21:17PM +0900, Tejun Heo wrote:
> Oh... the newest incarnation looks like the following.
>
> #if defined(ARCH_NEEDS_WEAK_PER_CPU) || defined(CONFIG_DEBUG_FORCE_WEAK_PER_CPU)
> #define DECLARE_PER_CPU_SECTION(type, name, sec) \
> extern __PCPU_DUMMY_ATTRS char __pcpu_scope_##name; \
> extern __PCPU_ATTRS(sec) __weak __typeof__(type) per_cpu__##name
>
> #define DEFINE_PER_CPU_SECTION(type, name, sec) \
> __PCPU_DUMMY_ATTRS char __pcpu_scope_##name; \
> __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \
> __PCPU_ATTRS(sec) __weak __typeof__(type) per_cpu__##name
> #else
> #define DECLARE_PER_CPU_SECTION(type, name, sec) \
> extern __PCPU_ATTRS(sec) __typeof__(type) per_cpu__##name
>
> #define DEFINE_PER_CPU_SECTION(type, name, sec) \
> __PCPU_ATTRS(sec) __typeof__(type) per_cpu__##name
> #endif
>
> So, I can simply drop __weak from the declaration like the following.
> Looks good?

Yeah, thanks, Tejun.

Ivan.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/