Skip to contentSkip to conversation

arch/i386/kernel/srat.c cast warning fix

PATCH William Lee Irwin III 1 participant 1 message May 22, 2003

lore
Share & tools
lore
#0 lore raw
arch/i386/kernel/srat.c +2 -1
diff -prauN mm8-2.5.69-1/arch/i386/kernel/srat.c mm8-2.5.69-2/arch/i386/kernel/srat.c
@@ -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;