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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux