diff options
author | Simon Glass <sjg@chromium.org> | 2025-01-10 17:00:06 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-01-22 15:58:03 -0600 |
commit | 26001ee047d071214c3dff7603c8d956ba172d6d (patch) | |
tree | 1622857c9241e29104abe33a62f04165ec42be6e | |
parent | 4219fd9a705dba1c066e02824514b9e4b13b8acf (diff) |
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 <sjg@chromium.org>
-rw-r--r-- | tools/mkimage.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |