From: Simon Glass <simon.glass@canonical.com> 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 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- 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) { -- 2.43.0