From: Tom Rini Date: Sat, 29 Jul 2017 11:43:21 -0400 Subject: [U-Boot] [PATCH] efi_gop.c: Store gd->fb_base as uintptr_t In-Reply-To: <20170728223102.65450-1-agraf@suse.de> References: <20170728223102.65450-1-agraf@suse.de> Message-ID: <1501343001-18801-1-git-send-email-trini@konsulko.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Otherwise we get a warning about assignment about making a pointer from int without a cast. Cc: Alexander Graf Signed-off-by: Tom Rini --- 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