From: Siva Durga Prasad Paladugu Date: Tue, 30 May 2017 12:29:06 +0000 (+0200) Subject: fs: usbifs: Fix warning in ubifs X-Git-Tag: v2017.07-rc2~81^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=34cc30af27165696a36274394f6ff019ed762ce6;p=u-boot fs: usbifs: Fix warning in ubifs This patch fixes the below warning by typecasting it properly fs/ubifs/ubifs.c: In function 'ubifs_load': fs/ubifs/ubifs.c:942:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] err = ubifs_read(filename, (void *)addr, 0, size, &actread); Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek Reviewed-by: Heiko Schocher --- diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c index cc397d605b..db29489eca 100644 --- a/fs/ubifs/ubifs.c +++ b/fs/ubifs/ubifs.c @@ -939,7 +939,7 @@ int ubifs_load(char *filename, u32 addr, u32 size) printf("Loading file '%s' to addr 0x%08x...\n", filename, addr); - err = ubifs_read(filename, (void *)addr, 0, size, &actread); + err = ubifs_read(filename, (void *)(uintptr_t)addr, 0, size, &actread); if (err == 0) { setenv_hex("filesize", actread); printf("Done\n");