[Concept,13/33] ext4l: Move DEFINE_WAIT to linux/wait.h

Message ID 20260121220857.2137568-14-sjg@u-boot.org
State New
Headers
Series Reorganise ext4l compatibility stubs |

Commit Message

Simon Glass Jan. 21, 2026, 10:08 p.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

Move the DEFINE_WAIT macro to linux/wait.h alongside the other wait queue
stubs. This is a more appropriate location since it is a standard Linux
kernel wait queue primitive.

This reduces ext4_uboot.h from 550 to 547 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 | 3 ---
 include/linux/wait.h  | 3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)
  

Patch

diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h
index 51fdcfab281..0c214501cef 100644
--- a/fs/ext4l/ext4_uboot.h
+++ b/fs/ext4l/ext4_uboot.h
@@ -487,9 +487,6 @@  void ext4l_print_msgs(void);
 struct blk_desc *ext4l_get_blk_dev(void);
 struct disk_partition *ext4l_get_partition(void);
 
-/* DEFINE_WAIT stub - creates a wait queue entry */
-#define DEFINE_WAIT(name)		int name = 0
-
 /* JBD2 journal.c stubs */
 int bmap(struct inode *inode, sector_t *block);
 
diff --git a/include/linux/wait.h b/include/linux/wait.h
index 70ebdc4919d..3dbcb100337 100644
--- a/include/linux/wait.h
+++ b/include/linux/wait.h
@@ -28,4 +28,7 @@  struct wait_queue_entry {
 #define wait_event(wq, condition)	do { } while (0)
 #define wait_event_interruptible(wq, condition)	0
 
+/* DEFINE_WAIT - creates a wait queue entry (stub for U-Boot) */
+#define DEFINE_WAIT(name)		int name = 0
+
 #endif /* _LINUX_WAIT_H */