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 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 */ -- 2.43.0