diff options
author | Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> | 2017-05-30 14:29:06 +0200 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2017-06-06 07:11:12 +0200 |
commit | 34cc30af27165696a36274394f6ff019ed762ce6 (patch) | |
tree | 0adbabeeb7f46e403dc724dc9cdf57244bf16366 /fs/ubifs | |
parent | ad701b1c911f733a5083c784644b1b67c9d12b3a (diff) | |
download | u-boot-34cc30af27165696a36274394f6ff019ed762ce6.zip u-boot-34cc30af27165696a36274394f6ff019ed762ce6.tar.gz u-boot-34cc30af27165696a36274394f6ff019ed762ce6.tar.bz2 |
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 <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'fs/ubifs')
-rw-r--r-- | fs/ubifs/ubifs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c index cc397d6..db29489 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"); |