diff options
| author | Wolfram Sang <wsa@the-dreams.de> | 2014-02-22 03:28:27 -0500 |
|---|---|---|
| committer | Hans-Christian Egtvedt <egtvedt@samfundet.no> | 2014-03-31 02:41:36 -0400 |
| commit | 8acc8722d3b5755abbfbe73f732dec576f28757a (patch) | |
| tree | e491dd49075931b7f8fc294004115eca8e12ed14 /arch/avr32/include/asm/processor.h | |
| parent | 455c6fdbd219161bd09b1165f11699d6d73de11c (diff) | |
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
Diffstat (limited to 'arch/avr32/include/asm/processor.h')
| -rw-r--r-- | arch/avr32/include/asm/processor.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/avr32/include/asm/processor.h b/arch/avr32/include/asm/processor.h index 48d71c5c898a..972adcc1e8f4 100644 --- a/arch/avr32/include/asm/processor.h +++ b/arch/avr32/include/asm/processor.h | |||
| @@ -83,13 +83,8 @@ static inline unsigned int avr32_get_chip_revision(struct avr32_cpuinfo *cpu) | |||
| 83 | 83 | ||
| 84 | extern struct avr32_cpuinfo boot_cpu_data; | 84 | extern struct avr32_cpuinfo boot_cpu_data; |
| 85 | 85 | ||
| 86 | #ifdef CONFIG_SMP | 86 | /* No SMP support so far */ |
| 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) | ||
| 91 | #define current_cpu_data boot_cpu_data | 87 | #define current_cpu_data boot_cpu_data |
| 92 | #endif | ||
| 93 | 88 | ||
| 94 | /* This decides where the kernel will search for a free chunk of vm | 89 | /* This decides where the kernel will search for a free chunk of vm |
| 95 | * space during mmap's | 90 | * space during mmap's |
