]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
image: Add an inline declaration of unmap_sysmem()
authorPaul HENRYS <paul.henrys_ext@softathome.com>
Mon, 24 Feb 2025 21:20:51 +0000 (22:20 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 28 Feb 2025 22:51:01 +0000 (16:51 -0600)
Add an empty inline declaration when compiling tools for a host where
unmap_sysmem() is not defined.

Signed-off-by: Paul HENRYS <paul.henrys_ext@softathome.com>
tools/mkimage.h

index 15741f250fd5f3cb621bd48ccba055cabe462083..5d6bcc9301a2334f15980b6c3710871f817d7b15 100644 (file)
@@ -37,6 +37,10 @@ static inline void *map_sysmem(ulong paddr, unsigned long len)
        return (void *)(uintptr_t)paddr;
 }
 
+static inline void unmap_sysmem(const void *vaddr)
+{
+}
+
 static inline ulong map_to_sysmem(const void *ptr)
 {
        return (ulong)(uintptr_t)ptr;