[PATCH 19/31] sandbox: Drop incorrect inclusion of linux/types.h

Simon Glass sjg at chromium.org
Tue Apr 25 01:08:24 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>
---

 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 c8b83f923ddb..38689bff1695 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 0415f0f0e7a1..43e79fa9330e 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.0.634.g4ca3ef3211-goog



More information about the U-Boot mailing list