summaryrefslogtreecommitdiffstats
path: root/arch/m32r/kernel/setup_opsput.c
diff options
context:
space:
mode:
authorAl Viro <viro@www.linux.org.uk>2005-08-23 22:47:22 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2005-08-23 18:43:44 -0700
commitc51d9943b11441fd1ea42c7e70cfb5eed33fe97b (patch)
tree18f2694b421cba1e0160db3781346d577a1e9b5a /arch/m32r/kernel/setup_opsput.c
parente231a9c4fdf402bcfd5a7c27be49050882631a95 (diff)
downloadblackbird-op-linux-c51d9943b11441fd1ea42c7e70cfb5eed33fe97b.tar.gz
blackbird-op-linux-c51d9943b11441fd1ea42c7e70cfb5eed33fe97b.zip
[PATCH] m32r icu_data gcc4 fixes
either icu_data declaration for SMP case should be taken out of m32102.h, or its declarations for m32700ut and opsput should not be static for SMP. Patch does the latter - judging by comments in m32102.h it is intended to be non-static. Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/m32r/kernel/setup_opsput.c')
-rw-r--r--arch/m32r/kernel/setup_opsput.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/m32r/kernel/setup_opsput.c b/arch/m32r/kernel/setup_opsput.c
index f0301f58bcce..d7b7ec6d30f8 100644
--- a/arch/m32r/kernel/setup_opsput.c
+++ b/arch/m32r/kernel/setup_opsput.c
@@ -31,9 +31,11 @@
typedef struct {
unsigned long icucr; /* ICU Control Register */
} icu_data_t;
+static icu_data_t icu_data[OPSPUT_NUM_CPU_IRQ];
+#else
+icu_data_t icu_data[OPSPUT_NUM_CPU_IRQ];
#endif /* CONFIG_SMP */
-static icu_data_t icu_data[OPSPUT_NUM_CPU_IRQ];
static void disable_opsput_irq(unsigned int irq)
{
OpenPOWER on IntegriCloud