mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
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: 4c8ff7095b ("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>
This commit is contained in:
parent
841a52ae07
commit
b8719b37cd
|
|
@ -1619,6 +1619,7 @@ static inline void f2fs_show_quota_options(struct seq_file *seq,
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_F2FS_FS_COMPRESSION
|
||||||
static inline void f2fs_show_compress_options(struct seq_file *seq,
|
static inline void f2fs_show_compress_options(struct seq_file *seq,
|
||||||
struct super_block *sb)
|
struct super_block *sb)
|
||||||
{
|
{
|
||||||
|
|
@ -1664,6 +1665,7 @@ static inline void f2fs_show_compress_options(struct seq_file *seq,
|
||||||
else if (F2FS_OPTION(sbi).compress_mode == COMPR_MODE_USER)
|
else if (F2FS_OPTION(sbi).compress_mode == COMPR_MODE_USER)
|
||||||
seq_printf(seq, ",compress_mode=%s", "user");
|
seq_printf(seq, ",compress_mode=%s", "user");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int f2fs_show_options(struct seq_file *seq, struct dentry *root)
|
static int f2fs_show_options(struct seq_file *seq, struct dentry *root)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user