]> git.ipfire.org Git - thirdparty/u-boot.git/commit
mtd: rawnand: nand_spl_loaders: Fix cast type build warning
authorRoger Quadros <rogerq@kernel.org>
Tue, 11 Oct 2022 11:50:05 +0000 (14:50 +0300)
committerDario Binacchi <dario.binacchi@amarulasolutions.com>
Sat, 10 Dec 2022 13:35:54 +0000 (14:35 +0100)
commit664d5369269f80d0883ede4573425e3546c87080
tree631a93decefe1609918b1fcbb3359899845e4930
parentcd72a950e0aaba0ea7e9cb1d03ff2f1ca0ca037a
mtd: rawnand: nand_spl_loaders: Fix cast type build warning

Fixes the below build warning on 64-bit platforms.

drivers/mtd/nand/raw/nand_spl_loaders.c:26:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      dst = (void *)((int)dst - page_offset);

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
Link: https://lore.kernel.org/all/20221011115012.6181-8-rogerq@kernel.org
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
drivers/mtd/nand/raw/nand_spl_loaders.c