Skip to content

Commit 8acc872

Browse files
Wolfram Sangegtvedt
authored andcommitted
avr32: remove cpu_data macro to fix compiles
Having cpu_data as a parameterless macro can easily cause build failures because it can be a variable name like in linux/pm_domain.h [1]. So, remove the macro and convert its only user. Because this architecture cannot do SMP, remove the whole SMP block, too. Only compile tested due to no hardware. Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no> [1] https://lists.01.org/pipermail/kbuild-all/2014-February/003252.html
1 parent 455c6fd commit 8acc872

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

‎arch/avr32/include/asm/bugs.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
static void __init check_bugs(void)
1111
{
12-
cpu_data->loops_per_jiffy = loops_per_jiffy;
12+
boot_cpu_data.loops_per_jiffy = loops_per_jiffy;
1313
}
1414

1515
#endif /* __ASM_AVR32_BUGS_H */

‎arch/avr32/include/asm/processor.h‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,8 @@ static inline unsigned int avr32_get_chip_revision(struct avr32_cpuinfo *cpu)
8383

8484
extern struct avr32_cpuinfo boot_cpu_data;
8585

86-
#ifdef CONFIG_SMP
87-
extern struct avr32_cpuinfo cpu_data[];
88-
#define current_cpu_data cpu_data[smp_processor_id()]
89-
#else
90-
#define cpu_data (&boot_cpu_data)
86+
/* No SMP support so far */
9187
#define current_cpu_data boot_cpu_data
92-
#endif
9388

9489
/* This decides where the kernel will search for a free chunk of vm
9590
* space during mmap's

0 commit comments

Comments
 (0)