aboutsummaryrefslogtreecommitdiff
path: root/include/mapmem.h
diff options
context:
space:
mode:
authorTom Rini2023-12-14 13:16:57 -0500
committerTom Rini2023-12-21 08:54:37 -0500
commit1e8ce11a0b94bb2fcf55590eeffa9c85886b89bc (patch)
tree0954975ab2f6a15e3d7b6a5825904f309db3f51e /include/mapmem.h
parent4abbed7e42b88a9e0dbda2dc36273e74a9374dde (diff)
include: Further cleanup includes
Add some missing headers such as <linux/errno.h> or <linux/types.h> or <linux/kernel.h> to header files that make direct usage of things provided by these headers. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/mapmem.h')
-rw-r--r--include/mapmem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mapmem.h b/include/mapmem.h
index 2134c8004d9..bb68b4c11af 100644
--- a/include/mapmem.h
+++ b/include/mapmem.h
@@ -13,6 +13,8 @@
# ifdef CONFIG_ARCH_MAP_SYSMEM
#include <asm/io.h>
# else
+#include <linux/types.h>
+
static inline void *map_sysmem(phys_addr_t paddr, unsigned long len)
{
return (void *)(uintptr_t)paddr;