fmap: Fix pointer related casts
BUG=None BRANCH=None TEST=Compiles Change-Id: I3a747cb562e7390bb81eca874d6c5aaa54b81e6e Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/209337 Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
b50c9441dd
commit
5d3aef321a
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue