[PATCH 04/30] include: <linux/types.h>: wrap in #ifndef __ASSEMBLY__

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Nov 22 00:47:06 PST 2021


While it makes no sense for assembly sources to include <linux/types.h>
directly, it may be included transitively outside of an __ASSEMBLY__
guard, thus wrap it completely in the __ASSEMBLY__ guard, just like
Linux does.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 include/linux/types.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/types.h b/include/linux/types.h
index 5716a4c92fac..dfef336c198b 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -1,5 +1,6 @@
 #ifndef _LINUX_TYPES_H
 #define _LINUX_TYPES_H
+#ifndef __ASSEMBLY__
 
 #include <linux/posix_types.h>
 #include <asm/types.h>
@@ -213,4 +214,5 @@ struct hlist_node {
 	struct hlist_node *next, **pprev;
 };
 
+#endif
 #endif /* _LINUX_TYPES_H */
-- 
2.30.2




More information about the barebox mailing list