Commit e1842ab5 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Linus Torvalds

[PATCH] Fix PA-RISC for older compilers

Fix declaration-after-code

From: Grant Grundler <grundler@parisc-linux.org>
From: Randolph Chung <tausq@parisc-linux.org>
Signed-off-by: default avatarMatthew Wilcox <willy@parisc-linux.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e18898f0
......@@ -102,8 +102,10 @@ int show_interrupts(struct seq_file *p, void *v)
}
if (i < NR_IRQS) {
struct irqaction *action;
spin_lock_irqsave(&irq_desc[i].lock, flags);
struct irqaction *action = irq_desc[i].action;
action = irq_desc[i].action;
if (!action)
goto skip;
seq_printf(p, "%3d: ", i);
......
......@@ -121,6 +121,10 @@ extern void collect_boot_cpu_data(void);
void __init setup_arch(char **cmdline_p)
{
#ifdef __LP64__
extern int parisc_narrow_firmware;
#endif
init_per_cpu(smp_processor_id()); /* Set Modes & Enable FP */
#ifdef __LP64__
......@@ -132,7 +136,6 @@ void __init setup_arch(char **cmdline_p)
pdc_console_init();
#ifdef __LP64__
extern int parisc_narrow_firmware;
if(parisc_narrow_firmware) {
printk(KERN_INFO "Kernel is using PDC in 32-bit mode.\n");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment