Commit ceb7a4ee authored by Andy Grover's avatar Andy Grover

ACPI: Add another cast to Bjoern's MADT walking fix to silence warning

parent 8d38964f
...@@ -1017,6 +1017,8 @@ void __init mp_config_acpi_legacy_irqs (void) ...@@ -1017,6 +1017,8 @@ void __init mp_config_acpi_legacy_irqs (void)
} }
} }
#ifndef CONFIG_ACPI_HT_ONLY
/* Ensure the ACPI SCI interrupt level is active low, edge-triggered */ /* Ensure the ACPI SCI interrupt level is active low, edge-triggered */
extern FADT_DESCRIPTOR acpi_fadt; extern FADT_DESCRIPTOR acpi_fadt;
...@@ -1038,7 +1040,7 @@ void __init mp_config_ioapic_for_sci(int irq) ...@@ -1038,7 +1040,7 @@ void __init mp_config_ioapic_for_sci(int irq)
status = acpi_get_firmware_table("APIC", 1, ACPI_LOGICAL_ADDRESSING, status = acpi_get_firmware_table("APIC", 1, ACPI_LOGICAL_ADDRESSING,
(acpi_table_header **) &madt); (acpi_table_header **) &madt);
if (ACPI_SUCCESS(status)) { if (ACPI_SUCCESS(status)) {
madt_end = (unsigned long)madt + madt->header.length; madt_end = (void *) (unsigned long)madt + madt->header.length;
entry = (struct acpi_table_int_src_ovr *) entry = (struct acpi_table_int_src_ovr *)
((unsigned long) madt + sizeof(struct acpi_table_madt)); ((unsigned long) madt + sizeof(struct acpi_table_madt));
...@@ -1060,6 +1062,8 @@ void __init mp_config_ioapic_for_sci(int irq) ...@@ -1060,6 +1062,8 @@ void __init mp_config_ioapic_for_sci(int irq)
io_apic_set_pci_routing(ioapic, ioapic_pin, irq); io_apic_set_pci_routing(ioapic, ioapic_pin, irq);
} }
#endif /*CONFIG_ACPI_HT_ONLY*/
#ifdef CONFIG_ACPI_PCI #ifdef CONFIG_ACPI_PCI
void __init mp_parse_prt (void) void __init mp_parse_prt (void)
......
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