[U-Boot] [PATCH] efi_gop.c: Store gd->fb_base as uintptr_t

Tom Rini trini at konsulko.com
Sat Jul 29 15:43:21 UTC 2017


Otherwise we get a warning about assignment about making a pointer from
int without a cast.

Cc: Alexander Graf <agraf at suse.de>
Signed-off-by: Tom Rini <trini at konsulko.com>
---
 lib/efi_loader/efi_gop.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/efi_loader/efi_gop.c b/lib/efi_loader/efi_gop.c
index 806cfaeea181..bd7ccccb93ff 100644
--- a/lib/efi_loader/efi_gop.c
+++ b/lib/efi_loader/efi_gop.c
@@ -131,7 +131,7 @@ int efi_gop_register(void)
 	struct efi_gop_obj *gopobj;
 	u32 bpix, col, row;
 	u64 fb_base, fb_size;
-	void *fb;
+	uintptr_t *fb;
 
 #ifdef CONFIG_DM_VIDEO
 	struct udevice *vdev;
@@ -155,7 +155,7 @@ int efi_gop_register(void)
 	row = panel_info.vl_row;
 	fb_base = gd->fb_base;
 	fb_size = lcd_get_size(&line_len);
-	fb = gd->fb_base;
+	fb = (uintptr_t *)gd->fb_base;
 #endif
 
 	switch (bpix) {
-- 
1.9.1



More information about the U-Boot mailing list