From: Simon Glass <simon.glass@canonical.com> Move setattr_prepare(), setattr_copy(), and posix_acl_chmod() stubs to linux/fs.h alongside the iattr structure and ATTR_* flags. This reduces ext4_uboot.h from 440 to 435 lines. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- fs/ext4l/ext4_uboot.h | 5 ----- include/linux/fs.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 2954723e2de..9ddd88d78aa 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -210,11 +210,6 @@ struct path; /* UID/GID bit helpers - use linux/highuid.h */ #include <linux/highuid.h> -/* Attribute operations */ -#define setattr_prepare(m, d, a) ({ (void)(m); (void)(d); (void)(a); 0; }) -#define setattr_copy(m, i, a) do { } while (0) -#define posix_acl_chmod(m, i, mo) ({ (void)(m); (void)(i); (void)(mo); 0; }) - /* File operations */ #define vmf_fs_error(e) ((vm_fault_t)VM_FAULT_SIGBUS) diff --git a/include/linux/fs.h b/include/linux/fs.h index 07fe8c5e711..0f3e44214c5 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -356,6 +356,11 @@ struct iattr { #define ATTR_KILL_SGID (1 << 12) #define ATTR_TIMES_SET (ATTR_ATIME_SET | ATTR_MTIME_SET) +/* Attribute operations - stubs for U-Boot */ +#define setattr_prepare(m, d, a) ({ (void)(m); (void)(d); (void)(a); 0; }) +#define setattr_copy(m, i, a) do { } while (0) +#define posix_acl_chmod(m, i, mo) ({ (void)(m); (void)(i); (void)(mo); 0; }) + /* writeback_control - defined in linux/compat.h */ /* fsnotify - stubs */ -- 2.43.0