Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
f2fs: fix build error too many arguments to functions
If CONFIG_F2FS_FS_COMPRESSION is not set. make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu-, will be failed, like this: fs/f2fs/data.c: In function ‘f2fs_finish_read_bio’: fs/f2fs/data.c:136:5: error: too many arguments to function ‘f2fs_end_read_compressed_page’ f2fs_end_read_compressed_page(page, true, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fs/f2fs/data.c:25:0: fs/f2fs/f2fs.h:4228:20: note: declared here static inline void f2fs_end_read_compressed_page(struct page *page, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/f2fs/data.c:138:4: error: too many arguments to function ‘f2fs_put_page_dic’ f2fs_put_page_dic(page, in_softirq); ^~~~~~~~~~~~~~~~~ In file included from fs/f2fs/data.c:25:0: fs/f2fs/f2fs.h:4233:20: note: declared here static inline void f2fs_put_page_dic(struct page *page) ^~~~~~~~~~~~~~~~~ fs/f2fs/data.c: In function ‘f2fs_handle_step_decompress’: fs/f2fs/data.c:241:4: error: too many arguments to function ‘f2fs_end_read_compressed_page’ f2fs_end_read_compressed_page(page, PageError(page), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fs/f2fs/data.c:25:0: fs/f2fs/f2fs.h:4228:20: note: declared here static inline void f2fs_end_read_compressed_page(struct page *page, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [fs/f2fs/data.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [fs/f2fs] Error 2 Since commit 1b56570 ("f2fs: handle decompress only post processing in softirq") had changed the definition of function "f2fs_end_read_compressed_page()" and "f2fs_put_page_dic()", but forgot the other definitions in f2fs.h warpped by #else /* CONFIG_F2FS_FS_COMPRESSION */. Reported-by: Hulk Robot <hulkci@huawei.com> Fixes: 1b56570("f2fs: handle decompress only post processing in softirq") Signed-off-by: Ren Zhijie <renzhijie2@huawei.com>
- Loading branch information