diff mbox

efi_loader: Fix warning in efi_gop

Message ID 20170731071557.40314-1-agraf@suse.de
State Accepted
Commit c1ae1a16086c3442154e8a392143897584eac862
Headers show

Commit Message

Alexander Graf July 31, 2017, 7:15 a.m. UTC
Commit ca9193d2b16 ("efi_loader: gop: fixes for CONFIG_DM_VIDEO without
CONFIG_LCD") dropped the explicit (void*) cast for fb_base in efi gop support
for CONFIG_LCD without DM. This patch adds it back, eliminating the now occuring
warning again

Fixes: ca9193d2b16 ("efi_loader: gop: fixes for CONFIG_DM_VIDEO without CONFIG_LCD")
Reported-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
---
 lib/efi_loader/efi_gop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini July 31, 2017, 3:20 p.m. UTC | #1
On Mon, Jul 31, 2017 at 09:15:57AM +0200, Alexander Graf wrote:

> Commit ca9193d2b16 ("efi_loader: gop: fixes for CONFIG_DM_VIDEO without

> CONFIG_LCD") dropped the explicit (void*) cast for fb_base in efi gop support

> for CONFIG_LCD without DM. This patch adds it back, eliminating the now occuring

> warning again

> 

> Fixes: ca9193d2b16 ("efi_loader: gop: fixes for CONFIG_DM_VIDEO without CONFIG_LCD")

> Reported-by: Tom Rini <trini@konsulko.com>

> Signed-off-by: Alexander Graf <agraf@suse.de>


Applied to u-boot/master, thanks!

-- 
Tom
diff mbox

Patch

diff --git a/lib/efi_loader/efi_gop.c b/lib/efi_loader/efi_gop.c
index 806cfaeea1..e063e0c79b 100644
--- a/lib/efi_loader/efi_gop.c
+++ b/lib/efi_loader/efi_gop.c
@@ -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 = (void*)gd->fb_base;
 #endif
 
 	switch (bpix) {