summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2021-02-20 17:38:41 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2021-03-12 13:16:41 -0800
commitcd6ee739b8ee49cf5f3d7c9a0f663f9f0c5afe1b (patch)
treecea801696d2a52aa1ddf5a4ce485131e56dcb5b9
parent3ab0598e6d860ef49d029943ba80f627c15c15d6 (diff)
downloadlinux-stable-cd6ee739b8ee49cf5f3d7c9a0f663f9f0c5afe1b.tar.gz
linux-stable-cd6ee739b8ee49cf5f3d7c9a0f663f9f0c5afe1b.tar.bz2
linux-stable-cd6ee739b8ee49cf5f3d7c9a0f663f9f0c5afe1b.zip
f2fs: avoid unused f2fs_show_compress_options()
LKP reports: fs/f2fs/super.c:1516:20: warning: unused function 'f2fs_show_compress_options' [-Wunused-function] static inline void f2fs_show_compress_options(struct seq_file *seq, Fix this issue by covering f2fs_show_compress_options() with CONFIG_F2FS_FS_COMPRESSION macro. Fixes: 4c8ff7095bef ("f2fs: support data compression") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index a17a4dd8d449..e03b2f0f69d0 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1616,6 +1616,7 @@ static inline void f2fs_show_quota_options(struct seq_file *seq,
#endif
}
+#ifdef CONFIG_F2FS_FS_COMPRESSION
static inline void f2fs_show_compress_options(struct seq_file *seq,
struct super_block *sb)
{
@@ -1661,6 +1662,7 @@ static inline void f2fs_show_compress_options(struct seq_file *seq,
else if (F2FS_OPTION(sbi).compress_mode == COMPR_MODE_USER)
seq_printf(seq, ",compress_mode=%s", "user");
}
+#endif
static int f2fs_show_options(struct seq_file *seq, struct dentry *root)
{