Browse Source

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>
tags/2020-06-01
Siva Durga Prasad Paladugu 4 years ago
committed by Heiko Schocher
parent
commit
34cc30af27
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      fs/ubifs/ubifs.c

+ 1
- 1
fs/ubifs/ubifs.c View File

@@ -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");