[PATCH 07/81] include: Add missing <linux/types.h>

Tom Rini trini at konsulko.com
Thu May 2 03:30:24 CEST 2024


These files have many "Linux" style types in them, add <linux/types.h>

Signed-off-by: Tom Rini <trini at konsulko.com>
---
 include/display.h    | 2 ++
 include/fuse.h       | 2 ++
 include/i2c_eeprom.h | 1 +
 include/libata.h     | 1 +
 include/ram.h        | 2 ++
 include/sm.h         | 2 +-
 6 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/include/display.h b/include/display.h
index 3d0121764411..e8d8aaa15fbc 100644
--- a/include/display.h
+++ b/include/display.h
@@ -6,6 +6,8 @@
 #ifndef _DISPLAY_H
 #define _DISPLAY_H
 
+#include <linux/types.h>
+
 struct udevice;
 struct display_timing;
 
diff --git a/include/fuse.h b/include/fuse.h
index d48dcdfa6474..4519821af7ea 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -11,6 +11,8 @@
 #ifndef _FUSE_H_
 #define _FUSE_H_
 
+#include <linux/types.h>
+
 /*
  * Read/Sense/Program/Override interface:
  *   bank:    Fuse bank
diff --git a/include/i2c_eeprom.h b/include/i2c_eeprom.h
index cba991e3574f..1fe32d2dd687 100644
--- a/include/i2c_eeprom.h
+++ b/include/i2c_eeprom.h
@@ -7,6 +7,7 @@
 #define __I2C_EEPROM
 
 #include <linux/errno.h>
+#include <linux/types.h>
 
 struct udevice;
 
diff --git a/include/libata.h b/include/libata.h
index a55e9315a730..fa39d21a44a0 100644
--- a/include/libata.h
+++ b/include/libata.h
@@ -10,6 +10,7 @@
 #ifndef __LIBATA_H__
 #define __LIBATA_H__
 
+#include <linux/types.h>
 
 enum {
 	/* various global constants */
diff --git a/include/ram.h b/include/ram.h
index 2fc971df465a..3600bb57a6cf 100644
--- a/include/ram.h
+++ b/include/ram.h
@@ -7,6 +7,8 @@
 #ifndef __RAM_H
 #define __RAM_H
 
+#include <linux/types.h>
+
 struct udevice;
 
 struct ram_info {
diff --git a/include/sm.h b/include/sm.h
index afa9c89055e5..fbc156ad68a7 100644
--- a/include/sm.h
+++ b/include/sm.h
@@ -19,7 +19,7 @@
  * implementation of the driver you are using.
  */
 
-#include <asm/types.h>
+#include <linux/types.h>
 #include <asm/ptrace.h>
 
 struct udevice;
-- 
2.34.1



More information about the U-Boot mailing list