Skip to contentSkip to conversation

x86: fix build warning int-to-pointer-cast

PATCH Superseded Vamshi K Sthambamkadi 1 participant 1 message Mar 30, 2020 x86

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: fix build warning int-to-pointer-cast

Fixed build warning int-to-pointer-cast arising from x86/boot/compressed/acpi.c while casting return value of get_cmdline_acpi_rsdp(). Culprit line -
rsdp = (struct acpi_table_rsdp *)get_cmdline_acpi_rsdp();

---
 arch/x86/boot/compressed/Makefile | 1 +
 1 file changed, 1 insertion(+)
arch/x86/boot/compressed/Makefile +1 -0
index 7619742..216a7c2 100644
@@ -88,6 +88,7 @@ ifdef CONFIG_X86_64
 	vmlinux-objs-y += $(obj)/pgtable_64.o
 endif
 
+CFLAGS_acpi.o := -Wno-int-to-pointer-cast
 vmlinux-objs-$(CONFIG_ACPI) += $(obj)/acpi.o
 
 vmlinux-objs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a
Signature · 1 line
2.7.4