From patchwork Wed Jan 14 22:55:56 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1500 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=1768431441; bh=uvxoPJpymzPXx8vCTAaLP9LaoNEsE7MO9Pxqt2SXspo=; 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=GpdbLQVYH6ZdsnqHTpqYFy8O29TaJ7yI7JNFUVzhAMKDggTFxKaDriLexg8aBpwAd IyipXIcywH0zpML7sZoOaHPmpEVmSXmBQugObKmIYqlGJqMcRiwhrbaddu2di6fN6T 2H8oAuTCS9ZKBj28aRp4IHMj3BPR3Rii5d5do6+H4Uo6Zq9o767+5Afl/IbKBZgAAI mQsgH0YpRMw1QvtIzMXC7b1P/UxwYPR10tP9TDEi/A2lCaW4JsfbOyZxkE4W6guUba MuQbPFklEUR9WFSXcbX/wjOwsOuU9unmQi9Yp3Wh2AL0kRUHYKO+auSmPnO3Euilag 0RbYklmdLtHVg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id A16666934D for ; Wed, 14 Jan 2026 15:57:21 -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 8ZIyNXx7PR8K for ; Wed, 14 Jan 2026 15:57:21 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431441; bh=uvxoPJpymzPXx8vCTAaLP9LaoNEsE7MO9Pxqt2SXspo=; 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=GpdbLQVYH6ZdsnqHTpqYFy8O29TaJ7yI7JNFUVzhAMKDggTFxKaDriLexg8aBpwAd IyipXIcywH0zpML7sZoOaHPmpEVmSXmBQugObKmIYqlGJqMcRiwhrbaddu2di6fN6T 2H8oAuTCS9ZKBj28aRp4IHMj3BPR3Rii5d5do6+H4Uo6Zq9o767+5Afl/IbKBZgAAI mQsgH0YpRMw1QvtIzMXC7b1P/UxwYPR10tP9TDEi/A2lCaW4JsfbOyZxkE4W6guUba MuQbPFklEUR9WFSXcbX/wjOwsOuU9unmQi9Yp3Wh2AL0kRUHYKO+auSmPnO3Euilag 0RbYklmdLtHVg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 8B97D69342 for ; Wed, 14 Jan 2026 15:57:21 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431439; bh=m0MXMBwnSqpo2ksywULmaO+gODUkyFwcbLA8PSq6ins=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jm8w1B8/ok78ebgOfb0neZ9PFRoZQrnR6Ltoe9pFaguhC6dlVEBZBH10UWVwSLRel a5IxTL6Db+fr2cAMblEjAfLvhUHqVYCQbxKrE6CXcFmhN2nnTjFg6W3YNHts06NjBC Pb4q+Wc3d+BzSBpiWJLQkd2280BT+CiJLQ9fyFd88zhaM+renWCSe6asLgftUALfMQ xInQQQaVEWj7qG8n9BWpRk1lV5emAAAXER0CuUiFWX4HhRZr7rL5Sel2zb7/9r8XGN gkbbDuXIRymMHSSmlsNBaHtgIZrOaE/PrBlrn5rX4E2s55lr5uGWUC1xs0npqxBwVH BwVXMc/O57EgQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id ACBED692F1; Wed, 14 Jan 2026 15:57:19 -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 sJCpf23kA4Vz; Wed, 14 Jan 2026 15:57:19 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431435; bh=bl8NL5N7TVUgENHNQQKYjLiwY1F6Bf5Js7lKf6qdaLI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u2uNJMDaFZcPDopn/QWEAtJggSFmo0GyJDKpiyqzuxinRT/2FqEOMRLHMsscltSIM 2dDgYd2G5iL9GGrm3hVNDCb0GlPypUggWnBy+fBgS2uRCeJBeR8jzerKb0MNx//zxV ipzJ59nQVyHnxsu+U0UArXg8hvS4S96kctYl2ExixWXW+A5z16ATkzIZPoCD36igc5 9Lh1eCeqhs2QunoK6labGhaCRJf95Ct2j73dzrxwnJqIz3/lresXhRJvxZqUKEOO4w jf50DWNffd+tb5dVFdYbP+JYd5bNvbxstre3TWBtyN67htS96+C31F0Z/frAoGsrph Pb98MnLO5rVfA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 60CD0692EF; Wed, 14 Jan 2026 15:57:15 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 14 Jan 2026 15:55:56 -0700 Message-ID: <20260114225635.3407989-7-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260114225635.3407989-1-sjg@u-boot.org> References: <20260114225635.3407989-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: GSILMJWAVM3P4IBBFAHPZYTE5NMLCO26 X-Message-ID-Hash: GSILMJWAVM3P4IBBFAHPZYTE5NMLCO26 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 06/34] ext4l: Move flush_workqueue to linux/workqueue.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 flush_workqueue stub from ext4_uboot.h to the common linux/workqueue.h header where other workqueue stubs reside. Also simplify the quota stubs section by removing the unnecessary _LINUX_QUOTAOPS_H guard, since quotaops.h is not included. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 7 ++----- include/linux/workqueue.h | 4 ++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 8a160a2db19..2ffa8ab271b 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -353,15 +353,13 @@ struct buffer_head *sb_getblk(struct super_block *sb, sector_t block); /* Group permission - stub */ #define in_group_p(gid) (0) -/* Quota operations - stubs (only define if quotaops.h not included) */ -#ifndef _LINUX_QUOTAOPS_H +/* Quota operations - stubs */ #define dquot_alloc_block_nofail(inode, nr) \ ({ (inode)->i_blocks += (nr) << ((inode)->i_blkbits - 9); 0; }) #define dquot_initialize(inode) ({ (void)(inode); 0; }) #define dquot_free_inode(inode) do { (void)(inode); } while (0) #define dquot_alloc_inode(inode) ({ (void)(inode); 0; }) #define dquot_drop(inode) do { (void)(inode); } while (0) -#endif /* _LINUX_QUOTAOPS_H */ /* icount - inode reference count */ #define icount_read(inode) (1) @@ -2403,8 +2401,7 @@ void dquot_free_block(struct inode *inode, loff_t nr); #define set_blocksize(f, size) ({ (void)(f); (void)(size); 0; }) struct buffer_head *__bread(struct block_device *bdev, sector_t block, unsigned size); -/* Workqueue operations - stubs */ -#define flush_workqueue(wq) do { (void)(wq); } while (0) +/* flush_workqueue is now in linux/workqueue.h */ /* Quota stubs for super.c */ #define dquot_writeback_dquots(sb, type) do { (void)(sb); (void)(type); } while (0) diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index 66f61fa6e77..2ae57341861 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h @@ -79,6 +79,10 @@ static inline void destroy_workqueue(struct workqueue_struct *wq) { } +static inline void flush_workqueue(struct workqueue_struct *wq) +{ +} + /* System workqueues - all stubs in U-Boot */ #define system_dfl_wq ((struct workqueue_struct *)1) #define system_wq ((struct workqueue_struct *)1)