From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Tue, 6 Jun 2017 07:10:43 +0200 Subject: [U-Boot] [PATCH] fs: usbifs: Fix warning in ubifs In-Reply-To: <854c3261ff41183566d44728b6a8e604e3f14980.1496147344.git.michal.simek@xilinx.com> References: <854c3261ff41183566d44728b6a8e604e3f14980.1496147344.git.michal.simek@xilinx.com> Message-ID: <59363953.2070703@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Michal, Am 30.05.2017 um 14:29 schrieb Michal Simek: > From: Siva Durga Prasad Paladugu > > 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 > --- > > fs/ubifs/ubifs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Heiko Schocher bye, Heiko > > diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c > index cc397d605b0e..db29489eca75 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"); > -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany