f2fs: data: fix warning Using plain integer as NULL pointer
PATCH 1/1 f2fs: data: fix warning Using plain integer as NULL pointer
changed passing function argument "0 to NULL" to fix below sparse warning
fs/f2fs/data.c:426:47: warning: Using plain integer as NULL pointer
Signed-off-by Hariprasad Kelam <[email protected]>
--- fs/f2fs/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/data.c +1 -1
@@ -423,7 +423,7 @@ static void __submit_merged_write_cond(struct f2fs_sb_info *sbi,void f2fs_submit_merged_write (struct f2fs_sb_info *sbi,enum page_type type) { -__submit_merged_write_cond (sbi,NULL ,0 ,0 , type, true); +__submit_merged_write_cond (sbi,NULL ,NULL ,0 , type, true); } void f2fs_submit_merged_write_cond(struct f2fs_sb_info *sbi,
Signature · 1 line
2.7.4
Quoted 6 lines · Hariprasad Kelam
changed passing function argument "0 to NULL" to fix below sparse warning
fs/f2fs/data.c:426:47: warning: Using plain integer as NULL pointerSigned-off-by Hariprasad Kelam <[email protected]>
Reviewed-by Mukesh Ojha <[email protected]>
Cheers,
-Mukesh
Quoted 17 lines
--- fs/f2fs/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/f2fs/data.c +1
-1@@ -423,7 +423,7 @@ static void __submit_merged_write_cond(struct f2fs_sb_info *sbi,void f2fs_submit_merged_write (struct f2fs_sb_info *sbi,enum page_type type) { -__submit_merged_write_cond (sbi,NULL ,0 ,0 , type, true); +__submit_merged_write_cond (sbi,NULL ,NULL ,0 , type, true); } void f2fs_submit_merged_write_cond(struct f2fs_sb_info *sbi,
Quoted 6 lines · Hariprasad Kelam
changed passing function argument "0 to NULL" to fix below sparse warning
fs/f2fs/data.c:426:47: warning: Using plain integer as NULL pointerSigned-off-by Hariprasad Kelam <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,