]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: avoid unused f2fs_show_compress_options()
authorChao Yu <yuchao0@huawei.com>
Sat, 20 Feb 2021 09:38:41 +0000 (17:38 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 12 Mar 2021 21:16:41 +0000 (13:16 -0800)
commite0c7c24d6b69dd0744142d3d9addb2cf1a4567db
treecea801696d2a52aa1ddf5a4ce485131e56dcb5b9
parentcf07883e0157b2c5627f34b0d1df1c1684debf7f
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: 8a0d456ed11c ("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>
fs/f2fs/super.c