[PATCH] um: io.h: include <linux/types.h>

Johannes Berg johannes at sipsolutions.net
Wed Feb 3 07:22:51 EST 2021


From: Johannes Berg <johannes.berg at intel.com>

This may be needed for size_t if something doesn't get
it included elsewhere before including <asm/io.h>, so
add the include.

Signed-off-by: Johannes Berg <johannes.berg at intel.com>
---
 arch/um/include/asm/io.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/um/include/asm/io.h b/arch/um/include/asm/io.h
index cef03e3aa0f9..6ce18d343997 100644
--- a/arch/um/include/asm/io.h
+++ b/arch/um/include/asm/io.h
@@ -1,6 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 #ifndef _ASM_UM_IO_H
 #define _ASM_UM_IO_H
+#include <linux/types.h>
 
 #define ioremap ioremap
 static inline void __iomem *ioremap(phys_addr_t offset, size_t size)
-- 
2.26.2




More information about the linux-um mailing list