diff options
Diffstat (limited to 'arch/x86/kernel/mpparse.c')
-rw-r--r-- | arch/x86/kernel/mpparse.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index 154de681e8b2..edbd2b19c603 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c | |||
@@ -74,7 +74,7 @@ static void __init MP_processor_info(struct mpc_config_processor *m) | |||
74 | } | 74 | } |
75 | 75 | ||
76 | #ifdef CONFIG_X86_IO_APIC | 76 | #ifdef CONFIG_X86_IO_APIC |
77 | static void __init MP_bus_info(struct mpc_config_bus *m) | 77 | static void __init MP_bus_info(struct mpc_bus *m) |
78 | { | 78 | { |
79 | char str[7]; | 79 | char str[7]; |
80 | memcpy(str, m->mpc_bustype, 6); | 80 | memcpy(str, m->mpc_bustype, 6); |
@@ -338,8 +338,7 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early) | |||
338 | } | 338 | } |
339 | case MP_BUS: | 339 | case MP_BUS: |
340 | { | 340 | { |
341 | struct mpc_config_bus *m = | 341 | struct mpc_bus *m = (struct mpc_bus *)mpt; |
342 | (struct mpc_config_bus *)mpt; | ||
343 | #ifdef CONFIG_X86_IO_APIC | 342 | #ifdef CONFIG_X86_IO_APIC |
344 | MP_bus_info(m); | 343 | MP_bus_info(m); |
345 | #endif | 344 | #endif |
@@ -488,7 +487,7 @@ static void __init construct_default_ioirq_mptable(int mpc_default_type) | |||
488 | static void __init construct_ioapic_table(int mpc_default_type) | 487 | static void __init construct_ioapic_table(int mpc_default_type) |
489 | { | 488 | { |
490 | struct mpc_config_ioapic ioapic; | 489 | struct mpc_config_ioapic ioapic; |
491 | struct mpc_config_bus bus; | 490 | struct mpc_bus bus; |
492 | 491 | ||
493 | bus.mpc_type = MP_BUS; | 492 | bus.mpc_type = MP_BUS; |
494 | bus.mpc_busid = 0; | 493 | bus.mpc_busid = 0; |
@@ -656,7 +655,7 @@ static void __init __get_smp_config(unsigned int early) | |||
656 | * ISA defaults and hope it will work. | 655 | * ISA defaults and hope it will work. |
657 | */ | 656 | */ |
658 | if (!mp_irq_entries) { | 657 | if (!mp_irq_entries) { |
659 | struct mpc_config_bus bus; | 658 | struct mpc_bus bus; |
660 | 659 | ||
661 | printk(KERN_ERR "BIOS bug, no explicit IRQ entries, " | 660 | printk(KERN_ERR "BIOS bug, no explicit IRQ entries, " |
662 | "using default mptable. " | 661 | "using default mptable. " |
@@ -867,8 +866,7 @@ static int __init replace_intsrc_all(struct mpc_table *mpc, | |||
867 | } | 866 | } |
868 | case MP_BUS: | 867 | case MP_BUS: |
869 | { | 868 | { |
870 | struct mpc_config_bus *m = | 869 | struct mpc_bus *m = (struct mpc_bus *)mpt; |
871 | (struct mpc_config_bus *)mpt; | ||
872 | mpt += sizeof(*m); | 870 | mpt += sizeof(*m); |
873 | count += sizeof(*m); | 871 | count += sizeof(*m); |
874 | break; | 872 | break; |