diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-11-22 09:47:06 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-11-25 08:42:49 +0100 |
commit | db23ff0e450ef028af2aab49abce0d2947dc0e86 (patch) | |
tree | dae18295871ce9512bb4694fae03a58df5329233 /include | |
parent | fd8c89c08b1ea4158e3469c355957fbf47dc497f (diff) | |
download | barebox-db23ff0e450ef028af2aab49abce0d2947dc0e86.tar.gz barebox-db23ff0e450ef028af2aab49abce0d2947dc0e86.tar.xz |
include: <linux/types.h>: wrap in #ifndef __ASSEMBLY__
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@pengutronix.de>
Link: https://lore.barebox.org/20211122084732.2597109-5-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h index 5716a4c92f..dfef336c19 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 */ |