f2fs: fix compile warnings: 'struct *' declared inside parameter list
authorZhikang Zhang <zhangzhikang1@huawei.com>
Thu, 3 Jan 2019 12:06:38 +0000 (20:06 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 8 Jan 2019 17:34:27 +0000 (09:34 -0800)
We meet these compile warnings below, which caused by missing declare structs:
struct f2fs_io_info, struct extent, struct f2fs_sb_info.

warning: 'struct f2fs_io_info' declared inside parameter list
warning: 'struct extent_info' declared inside parameter list
warning: 'struct f2fs_sb_info' declared inside parameter list

Signed-off-by: Zhikang Zhang <zhangzhikang1@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
include/trace/events/f2fs.h

index 3ec73f17ee2a4bc9517f9b8dd92e9c616d67073e..8a28a2b1be74ddefa56381b43831d14229fa1b1a 100644 (file)
@@ -149,6 +149,9 @@ TRACE_DEFINE_ENUM(CP_TRIMMED);
                { CP_SPEC_LOG_NUM,      "log type is 2" },              \
                { CP_RECOVER_DIR,       "dir needs recovery" })
 
+struct f2fs_sb_info;
+struct f2fs_io_info;
+struct extent_info;
 struct victim_sel_policy;
 struct f2fs_map_blocks;