From: Simon Glass <simon.glass@canonical.com> Replace the dquot_suspend() function in stub.c with a macro in ext4_uboot.h The function just returned 0, which is the same as what the macro does. This is consistent with the other quota stubs like dquot_resume which are already macros. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- fs/ext4l/ext4_uboot.h | 4 ++-- fs/ext4l/stub.c | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 16b0512781f..0edcb4533b7 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -2303,8 +2303,8 @@ void *bdev_file_open_by_dev(dev_t dev, int flags, void *holder, /* Filesystem sync - declaration for stub.c */ int sync_filesystem(void *sb); -/* Quota - declaration for stub.c */ -int dquot_suspend(void *sb, int flags); +/* Quota - declarations for stub.c */ +#define dquot_suspend(sb, type) ({ (void)(sb); (void)(type); 0; }) int dquot_alloc_space_nodirty(struct inode *inode, loff_t size); void dquot_free_space_nodirty(struct inode *inode, loff_t size); int dquot_alloc_block(struct inode *inode, loff_t nr); diff --git a/fs/ext4l/stub.c b/fs/ext4l/stub.c index 6e16af2dc24..378ee76b8b5 100644 --- a/fs/ext4l/stub.c +++ b/fs/ext4l/stub.c @@ -444,11 +444,7 @@ int sync_filesystem(void *sb) return 0; } -/* Quota */ -int dquot_suspend(void *sb, int flags) -{ - return 0; -} +/* dquot_suspend is now a macro in ext4_uboot.h */ /* MMP daemon - now in mmp.c */ -- 2.43.0