From c083d2e3470222a6a4130a322d133f7404a06bc6 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 6 Jul 2013 22:11:19 -0700 Subject: libpayload: Get rid of a compiler warning Change-Id: I7252925ef5c4efb69cad6b6fa179031162cf8e74 Signed-off-by: Gabe Black Reviewed-on: https://gerrit.chromium.org/gerrit/61058 Reviewed-by: Aaron Durbin Commit-Queue: Gabe Black Tested-by: Gabe Black Reviewed-on: http://review.coreboot.org/4346 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- payloads/libpayload/arch/x86/coreboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'payloads/libpayload') diff --git a/payloads/libpayload/arch/x86/coreboot.c b/payloads/libpayload/arch/x86/coreboot.c index 6c6122d26c..bd10b22e29 100644 --- a/payloads/libpayload/arch/x86/coreboot.c +++ b/payloads/libpayload/arch/x86/coreboot.c @@ -31,6 +31,7 @@ #include #include #include +#include /* * Some of this is x86 specific, and the rest of it is generic. Right now, @@ -83,7 +84,7 @@ static void cb_parse_vboot_handoff(unsigned char *ptr, struct sysinfo_t *info) { struct cb_vboot_handoff *vbho = (struct cb_vboot_handoff *)ptr; - info->vboot_handoff = vbho->vboot_handoff_addr; + info->vboot_handoff = (void *)(uintptr_t)vbho->vboot_handoff_addr; info->vboot_handoff_size = vbho->vboot_handoff_size; } -- cgit v1.2.3