mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] f2fs: fix unused function warning
@ 2021-01-25 12:24 Arnd Bergmann
  0 siblings, 0 replies; only message in thread
From: Arnd Bergmann @ 2021-01-25 12:24 UTC (permalink / raw)
  To: Jaegeuk Kim, Chao Yu
  Cc: Arnd Bergmann, Eric Biggers, Daeho Jeong, Jan Kara,
	linux-f2fs-devel, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

The f2fs_compress_set_level() function is only used for zstd and
lz4 compression modes, and otherwise causes a compile-time warning
for having no users.

Change the #ifdef check to match what calls it.

Fixes: c08e95fc6466 ("f2fs: compress: support compress level")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 fs/f2fs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 178bbb79bbcc..c5a69b0543c1 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -467,7 +467,7 @@ static int f2fs_set_test_dummy_encryption(struct super_block *sb,
 	return 0;
 }
 
-#ifdef CONFIG_F2FS_FS_COMPRESSION
+#if defined(CONFIG_F2FS_FS_LZ4) || defined(CONFIG_F2FS_FS_ZSTD)
 static int f2fs_compress_set_level(struct f2fs_sb_info *sbi, const char *str,
 						int type)
 {
-- 
2.29.2


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-25 12:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-25 12:24 [PATCH] f2fs: fix unused function warning Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®