aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2011-02-26 01:59:20 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-16 21:19:13 -0400
commita2a211cb55f0f3d13d791f3d2adccc96032e6846 (patch)
treed34928332d2dd9524765ee2ad2af24b06d85a2c8 /arch/sparc
parent81043e811191b5ccc1e6c170ed26f4ac8388834f (diff)
sparc32: fix build with leon or floppy enabled
Add a few includes back required to build with floppy enabled Fix declaration of trapbase_cpu* so it is now consistent Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/include/asm/leon.h3
-rw-r--r--arch/sparc/kernel/irq_32.c1
-rw-r--r--arch/sparc/kernel/kernel.h8
-rw-r--r--arch/sparc/kernel/leon_smp.c20
4 files changed, 17 insertions, 15 deletions
diff --git a/arch/sparc/include/asm/leon.h b/arch/sparc/include/asm/leon.h
index 8580d1764f90..c04f96fb753c 100644
--- a/arch/sparc/include/asm/leon.h
+++ b/arch/sparc/include/asm/leon.h
@@ -375,9 +375,6 @@ void leon_enable_irq_cpu(unsigned int irq_nr, unsigned int cpu);
375 375
376extern unsigned int real_irq_entry[], smpleon_ticker[]; 376extern unsigned int real_irq_entry[], smpleon_ticker[];
377extern unsigned int patchme_maybe_smp_msg[]; 377extern unsigned int patchme_maybe_smp_msg[];
378extern unsigned long trapbase_cpu1[];
379extern unsigned long trapbase_cpu2[];
380extern unsigned long trapbase_cpu3[];
381extern unsigned int t_nmi[], linux_trap_ipi15_leon[]; 378extern unsigned int t_nmi[], linux_trap_ipi15_leon[];
382extern unsigned int linux_trap_ipi15_sun4m[]; 379extern unsigned int linux_trap_ipi15_sun4m[];
383 380
diff --git a/arch/sparc/kernel/irq_32.c b/arch/sparc/kernel/irq_32.c
index 974dab046a04..93afee00a927 100644
--- a/arch/sparc/kernel/irq_32.c
+++ b/arch/sparc/kernel/irq_32.c
@@ -14,6 +14,7 @@
14#include <linux/kernel_stat.h> 14#include <linux/kernel_stat.h>
15#include <linux/seq_file.h> 15#include <linux/seq_file.h>
16 16
17#include <asm/cacheflush.h>
17#include <asm/pcic.h> 18#include <asm/pcic.h>
18#include <asm/leon.h> 19#include <asm/leon.h>
19 20
diff --git a/arch/sparc/kernel/kernel.h b/arch/sparc/kernel/kernel.h
index 7eb736314381..24ad449886be 100644
--- a/arch/sparc/kernel/kernel.h
+++ b/arch/sparc/kernel/kernel.h
@@ -3,6 +3,8 @@
3 3
4#include <linux/interrupt.h> 4#include <linux/interrupt.h>
5 5
6#include <asm/traps.h>
7
6/* cpu.c */ 8/* cpu.c */
7extern const char *sparc_cpu_type; 9extern const char *sparc_cpu_type;
8extern const char *sparc_pmu_type; 10extern const char *sparc_pmu_type;
@@ -54,9 +56,9 @@ extern unsigned int t_nmi[];
54extern unsigned int linux_trap_ipi15_sun4d[]; 56extern unsigned int linux_trap_ipi15_sun4d[];
55extern unsigned int linux_trap_ipi15_sun4m[]; 57extern unsigned int linux_trap_ipi15_sun4m[];
56 58
57extern unsigned long trapbase_cpu1[]; 59extern struct tt_entry trapbase_cpu1;
58extern unsigned long trapbase_cpu2[]; 60extern struct tt_entry trapbase_cpu2;
59extern unsigned long trapbase_cpu3[]; 61extern struct tt_entry trapbase_cpu3;
60 62
61extern char cputypval[]; 63extern char cputypval[];
62 64
diff --git a/arch/sparc/kernel/leon_smp.c b/arch/sparc/kernel/leon_smp.c
index e9df87f4447f..8f5de4aa3c0a 100644
--- a/arch/sparc/kernel/leon_smp.c
+++ b/arch/sparc/kernel/leon_smp.c
@@ -41,6 +41,8 @@
41#include <asm/leon.h> 41#include <asm/leon.h>
42#include <asm/leon_amba.h> 42#include <asm/leon_amba.h>
43 43
44#include "kernel.h"
45
44#ifdef CONFIG_SPARC_LEON 46#ifdef CONFIG_SPARC_LEON
45 47
46#include "irq.h" 48#include "irq.h"
@@ -261,23 +263,23 @@ void __init leon_smp_done(void)
261 263
262 /* Free unneeded trap tables */ 264 /* Free unneeded trap tables */
263 if (!cpu_isset(1, cpu_present_map)) { 265 if (!cpu_isset(1, cpu_present_map)) {
264 ClearPageReserved(virt_to_page(trapbase_cpu1)); 266 ClearPageReserved(virt_to_page(&trapbase_cpu1));
265 init_page_count(virt_to_page(trapbase_cpu1)); 267 init_page_count(virt_to_page(&trapbase_cpu1));
266 free_page((unsigned long)trapbase_cpu1); 268 free_page((unsigned long)&trapbase_cpu1);
267 totalram_pages++; 269 totalram_pages++;
268 num_physpages++; 270 num_physpages++;
269 } 271 }
270 if (!cpu_isset(2, cpu_present_map)) { 272 if (!cpu_isset(2, cpu_present_map)) {
271 ClearPageReserved(virt_to_page(trapbase_cpu2)); 273 ClearPageReserved(virt_to_page(&trapbase_cpu2));
272 init_page_count(virt_to_page(trapbase_cpu2)); 274 init_page_count(virt_to_page(&trapbase_cpu2));
273 free_page((unsigned long)trapbase_cpu2); 275 free_page((unsigned long)&trapbase_cpu2);
274 totalram_pages++; 276 totalram_pages++;
275 num_physpages++; 277 num_physpages++;
276 } 278 }
277 if (!cpu_isset(3, cpu_present_map)) { 279 if (!cpu_isset(3, cpu_present_map)) {
278 ClearPageReserved(virt_to_page(trapbase_cpu3)); 280 ClearPageReserved(virt_to_page(&trapbase_cpu3));
279 init_page_count(virt_to_page(trapbase_cpu3)); 281 init_page_count(virt_to_page(&trapbase_cpu3));
280 free_page((unsigned long)trapbase_cpu3); 282 free_page((unsigned long)&trapbase_cpu3);
281 totalram_pages++; 283 totalram_pages++;
282 num_physpages++; 284 num_physpages++;
283 } 285 }