From b41c082ccf85461ae9a39e25814eeed976b5c172 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 6 Jul 2013 22:11:19 -0700 Subject: [PATCH] libpayload: Get rid of a compiler warning. BUG=None TEST=Built for falco, snow, link. BRANCH=None 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 --- payloads/libpayload/arch/x86/coreboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }