Commit 1c9b29ce authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] arch/i386/kernel/srat.c cast warning fix

From: William Lee Irwin III <wli@holomorphy.com>

Fix "cast to pointer from integer of a different size".
parent 4235488c
......@@ -312,7 +312,8 @@ void __init get_memcfg_from_srat(void)
if (rsdp_address->pointer_type == ACPI_PHYSICAL_POINTER) {
printk("%s: assigning address to rsdp\n", __FUNCTION__);
rsdp = (struct acpi_table_rsdp *)rsdp_address->pointer.physical;
rsdp = (struct acpi_table_rsdp *)
(u32)rsdp_address->pointer.physical;
} else {
printk("%s: rsdp_address is not a physical pointer\n", __FUNCTION__);
return;
......
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