From 1eefe14f66c982bf7145e9d3b57fafd1f17fe12f Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Wed, 27 Apr 2016 16:07:20 +0200 Subject: spl: Fix compilation warnings for arm64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make code 64bit aware. Warnings: +../arch/arm/lib/spl.c: In function ‘jump_to_image_linux’: +../arch/arm/lib/spl.c:63:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] +../common/spl/spl_fat.c: In function ‘spl_load_image_fat’: +../common/spl/spl_fat.c:91:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- common/spl/spl_fat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/spl') diff --git a/common/spl/spl_fat.c b/common/spl/spl_fat.c index db67618..73d33f5 100644 --- a/common/spl/spl_fat.c +++ b/common/spl/spl_fat.c @@ -88,7 +88,8 @@ int spl_load_image_fat(struct blk_desc *block_dev, if (err) goto end; - err = file_fat_read(filename, (u8 *)spl_image.load_addr, 0); + err = file_fat_read(filename, + (u8 *)(uintptr_t)spl_image.load_addr, 0); } end: -- cgit v1.1