From patchwork Wed Jan 21 22:08:25 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1738 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=1769033402; bh=diqqB/k/JxuAxD4cgx4LC82hBcX6VxilheqxxLovooA=; 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=Kfl3i7hZXfuZpoj57/7FO44Y9wdwOr10/Q7w5BhXNY/6Im8YPDHlN669F/VGGZ2oi K8Q2zjifYAP4eVwfPFxoRgFwG70lh0VVcrvLMp78/tuLJjXg4dtFtTYYLgqebK2AXu ozNtG1mwJ5sj1H0mKZ1gjRc8JDDwgg7zu1gd/Rx28fNVjKaUV7V4vKRvuaYjDbEKxM AGfSnRDD+BvCoopv2UAi43IcrZ8w0KBCCAYF0YUNQ6uHHoMms8BuVm9g+O5FlY5Qk7 2K8xUwS3Zk5F4IcxiUbBi+SB3Tnqncq0gLRdMLqwJXdFnRZGPG6dqr1WhaGNmioZhh u3MuRg21PB+6w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D2221695FD for ; Wed, 21 Jan 2026 15:10:02 -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 mrHTDKkt12Pd for ; Wed, 21 Jan 2026 15:10:02 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033402; bh=diqqB/k/JxuAxD4cgx4LC82hBcX6VxilheqxxLovooA=; 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=Kfl3i7hZXfuZpoj57/7FO44Y9wdwOr10/Q7w5BhXNY/6Im8YPDHlN669F/VGGZ2oi K8Q2zjifYAP4eVwfPFxoRgFwG70lh0VVcrvLMp78/tuLJjXg4dtFtTYYLgqebK2AXu ozNtG1mwJ5sj1H0mKZ1gjRc8JDDwgg7zu1gd/Rx28fNVjKaUV7V4vKRvuaYjDbEKxM AGfSnRDD+BvCoopv2UAi43IcrZ8w0KBCCAYF0YUNQ6uHHoMms8BuVm9g+O5FlY5Qk7 2K8xUwS3Zk5F4IcxiUbBi+SB3Tnqncq0gLRdMLqwJXdFnRZGPG6dqr1WhaGNmioZhh u3MuRg21PB+6w== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BAE85695FB for ; Wed, 21 Jan 2026 15:10:02 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033401; bh=RdCSq+eauiTmuBvub7uF4PVNxp+ftStj8z8k/vqi44Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QvuR0twXh4V7GeWtCsmCvQniAg3aHBlCID5Hd+UfNm7cKRMC5C2DB1zj4UErZujSx BHb4b6GiQvhKyQ9CuadF8KyLvsoiKhsvUtEspbulcDvERgZu8/M2Z8PIah9tlaTqD8 ueV+IEN9kAooUicmC96dpsqMwQ3MAMt+ihJPqDe99xgXw/NleIi+Lm4tvNv6KpYvY4 4WG6fqcNv0eCfg27jiuFLDb2BefPiDDzOAMZT/xh6sYvqV3KX4AkDlrJHJBHpFcdQl /GPysh3ZLlQjFWM1oA111F6yMyJLh+/2AU8STWuHMguPdbTpMa+i/VxY0DU7qxFbOy TSUpwQAczPGFw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 55A98695FB; 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 IxmCsK6ZwlpB; 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=1769033395; bh=WjZ+OGYQH1dUVaZzMY8cYnFBoCqEskN+Q+XJ3EJSssM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BNAPwsNpAIOG4R9Yg2jAmYw9CuMMpsSAnIIWSZeuwVXv1ehSWdsw5v5zilTsmoEin t3VNXSFnXka4cY58GDC6cN+U00ry0HdmTLFE6osFUYpkUU3rwJ6iisoxY2E9NXsWni Ub+DQBOfLP8SkzmOqmcYFLLTA8OhRuxd00O5FHWQI5j7NCBA1DrDQQ+1GhSbxmIzhm xY/H1ywg0dZcTuTScDpMkmqH2YdiJcJR8sRSpfBa9+w/TNfBCCrUk8wNVLPPTkWlEh ZKfEc53VUfwRMIaMWh+xRDjuzRqDmMGh6CP8tth2pGKEmvz/Lq3NNR3fTcvlCueGXQ U1oq6XA8wmZIQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 9388F695FD; Wed, 21 Jan 2026 15:09:55 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 21 Jan 2026 15:08:25 -0700 Message-ID: <20260121220857.2137568-13-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: Z2LR52OTXXE272DENC52VUXVC3OGYLP7 X-Message-ID-Hash: Z2LR52OTXXE272DENC52VUXVC3OGYLP7 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 12/33] ext4l: Move fsnotify_sb_error() to linux/fs.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 fsnotify_sb_error() declaration to linux/fs.h alongside the existing fsnotify_change() stub. The implementation remains in ext4l/stub.c. This reduces ext4_uboot.h from 553 to 550 lines. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 3 --- include/linux/fs.h | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 746d4e9a748..51fdcfab281 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -394,9 +394,6 @@ void trace_ext4_error(struct super_block *sb, const char *func, unsigned int lin /* ___ratelimit is now in linux/ratelimit.h */ -/* Filesystem notification - declaration for stub.c */ -void fsnotify_sb_error(struct super_block *sb, struct inode *inode, int error); - /* kobject_put is now in linux/kobject.h */ /* wait_for_completion is now a macro in linux/completion.h */ diff --git a/include/linux/fs.h b/include/linux/fs.h index ea4d1fdf97e..9ced2c78017 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -358,9 +358,12 @@ struct iattr { /* writeback_control - defined in linux/compat.h */ -/* fsnotify - stub */ +/* fsnotify - stubs */ #define fsnotify_change(d, m) do { } while (0) +/* fsnotify_sb_error - implemented in ext4l/stub.c */ +void fsnotify_sb_error(struct super_block *sb, struct inode *inode, int error); + /* inode_init_once - stub */ static inline void inode_init_once(struct inode *inode) {