Skip to contentSkip to conversation

f2fs: quota: fix unused-label warning

PATCH Applied Arnd Bergmann 4 participants 4 messages Sep 17 – Sep 30 F2FS file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs: quota: fix unused-label warning

From: Arnd Bergmann <[email protected]>

The newly added label causes a warning when QUOTA is turned off:

fs/f2fs/super.c: In function '__f2fs_remount':
fs/f2fs/super.c:3142:1: error: label 'restore_holder' defined but not used [-Werror=unused-label]
3142 | restore_holder:

      | ^~~~~~~~~~~~~~
Fixes 3f140a60c92a ("f2fs: quota: fix stale lock holder on remount failure")
---
 fs/f2fs/super.c | 2 ++
 1 file changed, 2 insertions(+)
fs/f2fs/super.c +2 -0
index 6a2f09c61dcd..8358cdefa859 100644
@@ -3139,7 +3139,9 @@ static int __f2fs_remount(struct fs_context *fc, struct super_block *sb)
 	sbi->mount_opt = org_mount_opt;
 	sb->s_flags = old_sb_flags;
 
+#ifdef CONFIG_QUOTA
 restore_holder:
+#endif
 	sbi->umount_lock_holder = NULL;
 	return err;
 }
Signature · 1 line
2.53.0
Acked-by Tested-by on v1 1/1
#1 lore raw
Quoted 11 lines · On 9/17/26 7:21 AM, Arnd Bergmann via Linux-f2fs-devel wrote:

From: Arnd Bergmann <[email protected]>

The newly added label causes a warning when QUOTA is turned off:

fs/f2fs/super.c: In function '__f2fs_remount':
fs/f2fs/super.c:3142:1: error: label 'restore_holder' defined but not used [-Werror=unused-label]
3142 | restore_holder:

      | ^~~~~~~~~~~~~~
Fixes 3f140a60c92a ("f2fs: quota: fix stale lock holder on remount failure")

Thanks.

Quoted 18 lines
---
 fs/f2fs/super.c | 2 ++
 1 file changed, 2 insertions(+)
fs/f2fs/super.c +2 -0
index 6a2f09c61dcd..8358cdefa859 100644
@@ -3139,7 +3139,9 @@ static int __f2fs_remount(struct fs_context *fc, struct super_block *sb)
 	sbi->mount_opt = org_mount_opt;
 	sb->s_flags = old_sb_flags;
 
+#ifdef CONFIG_QUOTA
 restore_holder:
+#endif
 	sbi->umount_lock_holder = NULL;
 	return err;
 }
Signature · 1 line
~Randy
maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Arnd Bergmann
Quoted 11 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The newly added label causes a warning when QUOTA is turned off:

fs/f2fs/super.c: In function '__f2fs_remount':
fs/f2fs/super.c:3142:1: error: label 'restore_holder' defined but not used [-Werror=unused-label]
3142 | restore_holder:

       | ^~~~~~~~~~~~~~
Fixes 3f140a60c92a ("f2fs: quota: fix stale lock holder on remount failure")

Thanks,

#3 lore raw
In reply to Arnd Bergmann
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:

Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:

Quoted 10 lines · On Thu, 17 Sep 2026 16:21:42 +0200 you wrote:

From: Arnd Bergmann <[email protected]>

The newly added label causes a warning when QUOTA is turned off:

fs/f2fs/super.c: In function '__f2fs_remount':
fs/f2fs/super.c:3142:1: error: label 'restore_holder' defined but not used [-Werror=unused-label]
3142 | restore_holder:

      | ^~~~~~~~~~~~~~

[...]

Here is the summary with links:
- [f2fs-dev] f2fs: quota: fix unused-label warning

    https://git.kernel.org/jaegeuk/f2fs/c/4faeea625cf7

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html