Re: [PATCH] f2fs: fix compile warning

2021-03-02 Thread Chao Yu
On 2021/3/2 16:44, Chao Yu wrote: node.c:2750:13: note: in expansion of macro ‘min’ nrpages = min(last_offset - i, BIO_MAX_PAGES); Oh, after I rebase to last dev branch, compile warning is gone as we changed to use bio_max_segs() rather than min(). Please ignore this patch. Thanks,

[PATCH] f2fs: fix compile warning

2021-03-02 Thread Chao Yu
node.c: In function ‘f2fs_restore_node_summary’: ./include/linux/minmax.h:18:28: warning: comparison of distinct pointer types lacks a cast (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ ./include/linux/minmax.h:32:4: note: in expansion of macro ‘__typecheck’ (__

[PATCH] f2fs: fix compile warning

2020-08-10 Thread Chao Yu
This patch fixes below compile warning reported by LKP (kernel test robot) cppcheck warnings: (new ones prefixed by >>) >> fs/f2fs/file.c:761:9: warning: Identical condition 'err', second condition >> is always false [identicalConditionAfterEarlyExit] return err; ^ fs/f2fs/file