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 15741f2..5d6bcc9 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;