git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4219fd9
)
mkimage: Update map_to_sysmem() to match its prototype
author
Simon Glass
<sjg@chromium.org>
Sat, 11 Jan 2025 00:00:06 +0000
(17:00 -0700)
committer
Tom Rini
<trini@konsulko.com>
Wed, 22 Jan 2025 21:58:03 +0000
(15:58 -0600)
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>
tools/mkimage.h
patch
|
blob
|
history
diff --git
a/tools/mkimage.h
b/tools/mkimage.h
index
d92a3ff
..
15741f2
100644
(file)
--- 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;
}