From patchwork Wed Jan 21 22:08:26 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1739 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033405; bh=INOmP11fW70UYixmmwJJeaoc3/YOjbmVkvN3+WlL8FI=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=WMoLsUBdqlCdgRkyL2+QHJ3MjGiqq5Ny/oggCK4NzLxCBhtkHu3FtiWieVS25zd09 +DOVxbbOgEeZI6NDt0FWHsaSJC5s9aR0y90ZAoSC3X1w+121LvytbGthhXK4Pfel/g 8dNQQziAkc9OEncOz41sRe1m+peh7MObE5HPp/yeW7blHYMWeqo2KyFcbFGCyS42WA L/BmAtD5drShEAzifaq8ZM+lFNgxVcDpYnMDE3MqLihDmqUeb1+KaYpTOE2KzRZgrY DqHuEISXvfXfbEt+SZxczTa9Sm8XulLGO+SLcD6ThKkQQ9fzBI+1UrMyWE+9z+/nTn KACwmaGrR1Suw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D0C096960B for ; Wed, 21 Jan 2026 15:10:05 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id KR_VUnlQevWs for ; Wed, 21 Jan 2026 15:10:05 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033403; bh=INOmP11fW70UYixmmwJJeaoc3/YOjbmVkvN3+WlL8FI=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=JGmPwK6K5emOHb6WSMT8hdnosOYwd49V107hJrtC9q+/SNQ4M9O4smKln8Jk1i/fc uF0oCKMhtbnUfj9AQZIrn5TREPxLdIzqa6ZsN+OSKli8+/o4D0RWDqOiJhnXJPBXCJ O3JaSGke33kBd+rPBJt78ZLKyL/BuQQOXoO5GsG2J1OW/pqFNhMhteuTXNf9J26ivE iFJr90C2oOBEHOXBzyLr5beMpFWOiKO7+xjGMHOM1x6yHA55y1C+Rx3GjHu7Dn5Gsw /qs/itbQuFCCyD3s4vDbH8kSVm+sAPAowAQGy+f3qzAYoj1hoihN1t4nW6w7RiSDqY ZzlwNLo/zWV1g== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D39B369601 for ; Wed, 21 Jan 2026 15:10:03 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033401; bh=0WAoGIR4LFd9jEOq1W9xAgGV4SNNAtl/3xuoItdcxUk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jeHba2a25xnVziDsRRpDXtGTNIrCHefzMbfL/B4ojiinGCUF9Mf/W03M367Fex875 nv7xi+6OOa5fOLr4VRWeXQqekUoWYy3AvauEyfnAljxDadJhjP043FX7WotmnCxh/Z X7yQZaIOePyMf4E5WGmVJqn7egh7sqDHjJ1n9t8t46GgiXjvMohgG+FgnRKy1TIA+n FuBFRUEoIuJSgsccXeR/9XfDLulHiKFgJbWqso0wj3QIFf5VPbYO8v/BMQp7Z1PK8n SjhuXTKGb4XZFUwciID4w0ky0nIRDk0t3Br7Td1wJQX8yybh+pvnDzlFKgq93k9x/H aUpoP6rl0bOUA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 55AA869605; Wed, 21 Jan 2026 15:10:01 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id iMDWO12i8ODp; Wed, 21 Jan 2026 15:10:01 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033400; bh=x6Xz7W+hxZuwgERBUo6XokeooMyUp/l3+VMWJ14U0Lo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RfdrshYRFkynqhBvHmrN6cG0EkDquR9wmzqdZLnuUNubxlU6CRbSYT1sfAKhFJhDg 3k2iLGvXZ4j/o0BH74z/Y7vzFq4OHcC9cXvP1/PbHhn5Gg4L6ZSG9zqeV3s1YDwa67 cOmwXt3WZMAkO128zYre25Q0YucS091tkHHRVVLcP3/tCbs8E5upsEzgeuicpJI6Dj VX0IcXlTlWyYkMLeLkzeTPBKI1wPLLZdJP625qeAwE50oyValFhvkl/31lxTivIwQF ABA5p3C0G05LGY2OQseGOyQutmPU0Chl1GnhzR/IFZWY+wH4Q66F+hPYMXWYgrFw87 ehAolxJa7INNg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 32193695F7; Wed, 21 Jan 2026 15:10:00 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 21 Jan 2026 15:08:26 -0700 Message-ID: <20260121220857.2137568-14-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260121220857.2137568-1-sjg@u-boot.org> References: <20260121220857.2137568-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: UNHPVVVA3CIKBMXBEKJ7SRJK7JWGYKYZ X-Message-ID-Hash: UNHPVVVA3CIKBMXBEKJ7SRJK7JWGYKYZ X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 13/33] ext4l: Move DEFINE_WAIT to linux/wait.h List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass 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 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 3 --- include/linux/wait.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) 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 */