Skip to contentSkip to conversation

f2fs: Make f2fs_verify_pages static

PATCH In review Zhang Xiaoxu 3 participants 3 messages Jan 15, 2020 F2FS file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs: Make f2fs_verify_pages static

Fix sparse warning:

fs/f2fs/data.c:187:6: warning:
symbol 'f2fs_verify_pages' was not declared. Should it be static?

---
 fs/f2fs/data.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/data.c +1 -1
index 2576d7dd047d..b27b72107911 100644
@@ -184,7 +184,7 @@ static void f2fs_decompress_work(struct bio_post_read_ctx *ctx)
 }
 
 #ifdef CONFIG_F2FS_FS_COMPRESSION
-void f2fs_verify_pages(struct page **rpages, unsigned int cluster_size)
+static void f2fs_verify_pages(struct page **rpages, unsigned int cluster_size)
 {
 	f2fs_decompress_end_io(rpages, cluster_size, false, true);
 }
Signature · 8 lines
2.17.2



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#1 lore raw

Hi Xiaoxu,

Quoted 4 lines · Zhang Xiaoxu

Fix sparse warning:

fs/f2fs/data.c:187:6: warning:
symbol 'f2fs_verify_pages' was not declared. Should it be static?

Thanks for your patch.

It will be better to merge this patch into original patch which is still on dev status, let us know if you have any other concern. :)

Thanks,

Quoted 13 lines
---
 fs/f2fs/data.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/data.c +0 -0
index 2576d7dd047d..b27b72107911 100644

fs/f2fs/data.c static void f2fs_decompress_work(struct bio_post_read_ctx *ctx) · line 190

Quoted 8 lines
fs/f2fs/data.c +1 -1
@@ -184,7 +184,7 @@ static void f2fs_decompress_work(struct bio_post_read_ctx *ctx)
 }
 
 #ifdef CONFIG_F2FS_FS_COMPRESSION
-void f2fs_verify_pages(struct page **rpages, unsigned int cluster_size)
+static void f2fs_verify_pages(struct page **rpages, unsigned int cluster_size)
 {
 	f2fs_decompress_end_io(rpages, cluster_size, false, true);
 }

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

maintainer
#2 lore raw
In reply to Zhang Xiaoxu

Hi,

I applied this in the original patch.

Thanks,

Quoted 26 lines · Zhang Xiaoxu

Fix sparse warning:

fs/f2fs/data.c:187:6: warning:
symbol 'f2fs_verify_pages' was not declared. Should it be static?

---
 fs/f2fs/data.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/data.c +1 -1
index 2576d7dd047d..b27b72107911 100644
@@ -184,7 +184,7 @@ static void f2fs_decompress_work(struct bio_post_read_ctx *ctx)
 }
 
 #ifdef CONFIG_F2FS_FS_COMPRESSION
-void f2fs_verify_pages(struct page **rpages, unsigned int cluster_size)
+static void f2fs_verify_pages(struct page **rpages, unsigned int cluster_size)
 {
 	f2fs_decompress_end_io(rpages, cluster_size, false, true);
 }
Signature · 1 line
2.17.2

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel