[PATCH v2 12/30] sandbox: Drop incorrect inclusion of linux/types.h

Simon Glass sjg at chromium.org
Sun Apr 30 03:29:45 CEST 2023


This header file should only be included in U-Boot standalone files, not
those built in the Linux environment. When not building for Linux, the
header file does not exist, except in the U-Boot tree. In any case, it
should not be used.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 arch/sandbox/cpu/os.c | 1 -
 include/os.h          | 2 --
 2 files changed, 3 deletions(-)

diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c
index 9e93a0fa571f..e76568ebdd32 100644
--- a/arch/sandbox/cpu/os.c
+++ b/arch/sandbox/cpu/os.c
@@ -26,7 +26,6 @@
 #include <sys/time.h>
 #include <sys/types.h>
 #include <linux/compiler_attributes.h>
-#include <linux/types.h>
 
 #include <asm/fuzzing_engine.h>
 #include <asm/getopt.h>
diff --git a/include/os.h b/include/os.h
index 968412b0a822..561ef1264b13 100644
--- a/include/os.h
+++ b/include/os.h
@@ -11,8 +11,6 @@
 #ifndef __OS_H__
 #define __OS_H__
 
-#include <linux/types.h>
-
 struct rtc_time;
 struct sandbox_state;
 
-- 
2.40.1.495.gc816e09b53d-goog



More information about the U-Boot mailing list