* [PATCH] x86: fix build warning int-to-pointer-cast
@ 2020-03-30 12:29 Vamshi K Sthambamkadi
0 siblings, 0 replies; only message in thread
From: Vamshi K Sthambamkadi @ 2020-03-30 12:29 UTC (permalink / raw)
To: tglx, mingo, bp, hpa, x86; +Cc: linux-kernel
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();
Signed-off-by: Vamshi K Sthambamkadi <vamshi.k.sthambamkadi@gmail.com>
---
arch/x86/boot/compressed/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile
index 7619742..216a7c2 100644
--- a/arch/x86/boot/compressed/Makefile
+++ b/arch/x86/boot/compressed/Makefile
@@ -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
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-30 12:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-30 12:29 [PATCH] x86: fix build warning int-to-pointer-cast Vamshi K Sthambamkadi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox