From: Simon Glass <simon.glass@canonical.com>
Move definitions to their canonical Linux kernel locations:
- O_SYNC and S_NOQUOTA to linux/fs.h
- kfree_link to linux/namei.h
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 | 4 ++++
include/linux/namei.h | 3 +++
3 files changed, 7 insertions(+), 5 deletions(-)
@@ -94,9 +94,6 @@
#include <linux/sched/mm.h>
#define EXT4_FIEMAP_EXTENT_HOLE 0x08000000
-#define O_SYNC 0
-#define S_NOQUOTA 0
-
#ifndef PAGE_SHIFT
#define PAGE_SHIFT 12
#endif
@@ -210,8 +207,6 @@ struct path;
#include <linux/delayed_call.h>
-#define kfree_link kfree
-
/*
* Additional stubs for super.c
*/
@@ -387,6 +387,10 @@ static inline void inode_init_once(struct inode *inode)
#define S_ENCRYPTED 64 /* Encrypted */
#define S_CASEFOLD 128 /* Case-folded */
#define S_VERITY 256 /* Verity enabled */
+#define S_NOQUOTA 0 /* No quota (stub) */
+
+/* Open flags - stubs for U-Boot */
+#define O_SYNC 0
/* Permission mode constants */
#define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO)
@@ -31,4 +31,7 @@ static inline void nd_terminate_link(void *name, loff_t len, int maxlen)
((char *)name)[min_t(loff_t, len, maxlen)] = '\0';
}
+/* kfree_link - free a symlink target allocated with kmalloc */
+#define kfree_link kfree
+
#endif /* _LINUX_NAMEI_H */