[Concept,06/10] ext4l: Add linux/utsname.h stub header

Message ID 20251220232355.845414-7-sjg@u-boot.org
State New
Headers
Series ext4l: Add more ext4 files to the build (part D) |

Commit Message

Simon Glass Dec. 20, 2025, 11:23 p.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

Add a stub header for linux/utsname.h needed by mmp.c and other
ext4 files.

Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

 include/linux/utsname.h | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 include/linux/utsname.h
  

Patch

diff --git a/include/linux/utsname.h b/include/linux/utsname.h
new file mode 100644
index 00000000000..4e1c712ee56
--- /dev/null
+++ b/include/linux/utsname.h
@@ -0,0 +1,21 @@ 
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _LINUX_UTSNAME_H
+#define _LINUX_UTSNAME_H
+
+/* Stub for linux/utsname.h */
+struct new_utsname {
+	char sysname[65];
+	char nodename[65];
+	char release[65];
+	char version[65];
+	char machine[65];
+	char domainname[65];
+};
+
+struct uts_namespace {
+	struct new_utsname name;
+};
+
+extern struct uts_namespace init_uts_ns;
+
+#endif /* _LINUX_UTSNAME_H */