fs: usbifs: Fix warning in ubifs
PATCH 1/1 fs: usbifs: Fix warning in ubifs
From: Siva Durga Prasad Paladugu <[email protected]>
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);
---
fs/ubifs/ubifs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ubifs/ubifs.c +1 -1
@@ -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" );
Signature · 1 line
1.9.1
PATCH 1/1 fs: usbifs: Fix warning in ubifs
Hello Michal,
Am 30.05.2017 um 14:29 schrieb Michal Simek:
Quoted 8 lines
From: Siva Durga Prasad Paladugu <[email protected]>
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);
Quoted 6 lines
Signed-off-by Siva Durga Prasad Paladugu <[email protected]>Signed-off-by Michal Simek <[email protected]>---
fs/ubifs/ubifs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bye,
Heiko
Quoted 15 lines
fs/ubifs/ubifs.c +1
-1@@ -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" );
Signature · 2 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany