Skip to content

Commit c51d994

Browse files
Al ViroLinus Torvalds
authored andcommitted
[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>
1 parent e231a9c commit c51d994

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎arch/m32r/kernel/setup_m32700ut.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@
3030
typedef struct {
3131
unsigned long icucr; /* ICU Control Register */
3232
} icu_data_t;
33+
static icu_data_t icu_data[M32700UT_NUM_CPU_IRQ];
34+
#else
35+
icu_data_t icu_data[M32700UT_NUM_CPU_IRQ];
3336
#endif /* CONFIG_SMP */
3437

35-
static icu_data_t icu_data[M32700UT_NUM_CPU_IRQ];
3638

3739
static void disable_m32700ut_irq(unsigned int irq)
3840
{

‎arch/m32r/kernel/setup_opsput.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@
3131
typedef struct {
3232
unsigned long icucr; /* ICU Control Register */
3333
} icu_data_t;
34+
static icu_data_t icu_data[OPSPUT_NUM_CPU_IRQ];
35+
#else
36+
icu_data_t icu_data[OPSPUT_NUM_CPU_IRQ];
3437
#endif /* CONFIG_SMP */
3538

36-
static icu_data_t icu_data[OPSPUT_NUM_CPU_IRQ];
3739

3840
static void disable_opsput_irq(unsigned int irq)
3941
{

0 commit comments

Comments
 (0)