From: Simon Glass Date: Sat, 11 Jan 2025 00:00:06 +0000 (-0700) Subject: mkimage: Update map_to_sysmem() to match its prototype X-Git-Tag: v2025.04-rc1~27^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26001ee047d071214c3dff7603c8d956ba172d6d;p=pandora-u-boot.git mkimage: Update map_to_sysmem() to match its prototype Update the version of this function in mkimage so that it uses a const pointer, as is done in the mapmem.h header file. Signed-off-by: Simon Glass --- diff --git a/tools/mkimage.h b/tools/mkimage.h index d92a3ff8117..15741f250fd 100644 --- a/tools/mkimage.h +++ b/tools/mkimage.h @@ -37,7 +37,7 @@ static inline void *map_sysmem(ulong paddr, unsigned long len) return (void *)(uintptr_t)paddr; } -static inline ulong map_to_sysmem(void *ptr) +static inline ulong map_to_sysmem(const void *ptr) { return (ulong)(uintptr_t)ptr; }