From c1f5a2e3643be9128448c8557ed1a62437602d69 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Tue, 22 Jul 2014 11:13:45 -0700 Subject: fmap: Fix pointer related casts BUG=None BRANCH=None TEST=Compiles Original-Change-Id: I3a747cb562e7390bb81eca874d6c5aaa54b81e6e Original-Signed-off-by: Furquan Shaikh Original-Reviewed-on: https://chromium-review.googlesource.com/209337 Original-Tested-by: Furquan Shaikh Original-Reviewed-by: Aaron Durbin Original-Commit-Queue: Furquan Shaikh (cherry picked from commit 5d3aef321a9313719308909ec40fdad0ec631a9f) Signed-off-by: Marc Jones Change-Id: Ia8edf54f65947be12a7ae69f6825545fb2aed0f1 Reviewed-on: http://review.coreboot.org/8222 Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/vendorcode/google/chromeos/fmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vendorcode/google') diff --git a/src/vendorcode/google/chromeos/fmap.c b/src/vendorcode/google/chromeos/fmap.c index bc56a19066..d758f57a20 100644 --- a/src/vendorcode/google/chromeos/fmap.c +++ b/src/vendorcode/google/chromeos/fmap.c @@ -122,7 +122,7 @@ int find_fmap_entry(const char name[], void **pointer) #endif } - *pointer = (void*) ((u32)base + area->offset); + *pointer = (void*) ((uintptr_t)base + area->offset); printk(BIOS_DEBUG, "FMAP: %s at %p (offset %x)\n", name, *pointer, area->offset); return area->size; -- cgit v1.2.3