* [PATCH] alpha: Fix percpu for !SMP
@ 2008-06-24 16:25 Segher Boessenkool
2008-06-24 19:34 ` Ivan Kokshaysky
0 siblings, 1 reply; 2+ messages in thread
From: Segher Boessenkool @ 2008-06-24 16:25 UTC (permalink / raw)
To: linux-kernel; +Cc: Segher Boessenkool, Ivan Kokshaysky
Commit 9267b4b3880d00dc2dab90f1d817c856939114f7 introduced a
percpu.h for alpha. It didn't define PER_CPU_ATTRIBUTES for
the non-SMP case, leading to build failures for such a config
(e.g., the alpha defconfig).
Fix this by defining PER_CPU_ATTRIBUTES to empty at the end of
asm-alpha/percpu.h if it wasn't already defined, just like the
asm-generic version does. The SMP && !MODULE case can drop its
own definition now as well.
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
---
This is needed for 2.6.26, it's a regression fix.
include/asm-alpha/percpu.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/include/asm-alpha/percpu.h b/include/asm-alpha/percpu.h
index 82e8a94..c3e2a1c 100644
--- a/include/asm-alpha/percpu.h
+++ b/include/asm-alpha/percpu.h
@@ -28,7 +28,6 @@ extern unsigned long __per_cpu_offset[NR_CPUS];
#ifndef MODULE
#define SHIFT_PERCPU_PTR(var, offset) RELOC_HIDE(&per_cpu_var(var), (offset))
-#define PER_CPU_ATTRIBUTES
#else
/*
* To calculate addresses of locally defined variables, GCC uses 32-bit
@@ -73,4 +72,8 @@ extern unsigned long __per_cpu_offset[NR_CPUS];
#define DECLARE_PER_CPU(type, name) extern __typeof__(type) per_cpu_var(name)
+#ifndef PER_CPU_ATTRIBUTES
+#define PER_CPU_ATTRIBUTES
+#endif
+
#endif /* __ALPHA_PERCPU_H */
--
1.5.5.1.g377d9.dirty
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] alpha: Fix percpu for !SMP
2008-06-24 16:25 [PATCH] alpha: Fix percpu for !SMP Segher Boessenkool
@ 2008-06-24 19:34 ` Ivan Kokshaysky
0 siblings, 0 replies; 2+ messages in thread
From: Ivan Kokshaysky @ 2008-06-24 19:34 UTC (permalink / raw)
To: Segher Boessenkool; +Cc: linux-kernel
On Tue, Jun 24, 2008 at 06:25:12PM +0200, Segher Boessenkool wrote:
> Commit 9267b4b3880d00dc2dab90f1d817c856939114f7 introduced a
> percpu.h for alpha. It didn't define PER_CPU_ATTRIBUTES for
> the non-SMP case, leading to build failures for such a config
> (e.g., the alpha defconfig).
Thanks, but similar patch from Thorsten Kranzkowski already
went in.
Ivan.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-24 19:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-24 16:25 [PATCH] alpha: Fix percpu for !SMP Segher Boessenkool
2008-06-24 19:34 ` Ivan Kokshaysky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®