image: Add an inline declaration of unmap_sysmem()
authorPaul HENRYS <paul.henrys_ext@softathome.com>
Wed, 12 Feb 2025 09:31:22 +0000 (10:31 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 21 Feb 2025 14:34:21 +0000 (08:34 -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;