diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-02-10 19:23:12 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-02-11 20:04:49 -0500 |
commit | 29e7043f405c4c4c3a82f61222790f3ea8c0bf13 (patch) | |
tree | 9c47e10c3d04c74224718d99159c495e0806e3ce /include/trace | |
parent | 59b802e5a453d413e7222d179be405cbadca3a8e (diff) |
f2fs: fix sparse warnings
This patch resolves the following warnings.
include/trace/events/f2fs.h:150:1: warning: expression using sizeof bool
include/trace/events/f2fs.h:180:1: warning: expression using sizeof bool
include/trace/events/f2fs.h:990:1: warning: expression using sizeof bool
include/trace/events/f2fs.h:990:1: warning: expression using sizeof bool
include/trace/events/f2fs.h:150:1: warning: odd constant _Bool cast (ffffffffffffffff becomes 1)
include/trace/events/f2fs.h:180:1: warning: odd constant _Bool cast (ffffffffffffffff becomes 1)
include/trace/events/f2fs.h:990:1: warning: odd constant _Bool cast (ffffffffffffffff becomes 1)
include/trace/events/f2fs.h:990:1: warning: odd constant _Bool cast (ffffffffffffffff becomes 1)
fs/f2fs/checkpoint.c:27:19: warning: symbol 'inode_entry_slab' was not declared. Should it be static?
fs/f2fs/checkpoint.c:577:15: warning: cast to restricted __le32
fs/f2fs/checkpoint.c:592:15: warning: cast to restricted __le32
fs/f2fs/trace.c:19:1: warning: symbol 'pids' was not declared. Should it be static?
fs/f2fs/trace.c:21:21: warning: symbol 'last_io' was not declared. Should it be static?
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/f2fs.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h index 69629826c2ba..5422dbfaf97d 100644 --- a/include/trace/events/f2fs.h +++ b/include/trace/events/f2fs.h | |||
@@ -149,14 +149,14 @@ DEFINE_EVENT(f2fs__inode, f2fs_sync_file_enter, | |||
149 | 149 | ||
150 | TRACE_EVENT(f2fs_sync_file_exit, | 150 | TRACE_EVENT(f2fs_sync_file_exit, |
151 | 151 | ||
152 | TP_PROTO(struct inode *inode, bool need_cp, int datasync, int ret), | 152 | TP_PROTO(struct inode *inode, int need_cp, int datasync, int ret), |
153 | 153 | ||
154 | TP_ARGS(inode, need_cp, datasync, ret), | 154 | TP_ARGS(inode, need_cp, datasync, ret), |
155 | 155 | ||
156 | TP_STRUCT__entry( | 156 | TP_STRUCT__entry( |
157 | __field(dev_t, dev) | 157 | __field(dev_t, dev) |
158 | __field(ino_t, ino) | 158 | __field(ino_t, ino) |
159 | __field(bool, need_cp) | 159 | __field(int, need_cp) |
160 | __field(int, datasync) | 160 | __field(int, datasync) |
161 | __field(int, ret) | 161 | __field(int, ret) |
162 | ), | 162 | ), |
@@ -185,7 +185,7 @@ TRACE_EVENT(f2fs_sync_fs, | |||
185 | 185 | ||
186 | TP_STRUCT__entry( | 186 | TP_STRUCT__entry( |
187 | __field(dev_t, dev) | 187 | __field(dev_t, dev) |
188 | __field(bool, dirty) | 188 | __field(int, dirty) |
189 | __field(int, wait) | 189 | __field(int, wait) |
190 | ), | 190 | ), |
191 | 191 | ||
@@ -989,14 +989,15 @@ TRACE_EVENT(f2fs_issue_discard, | |||
989 | 989 | ||
990 | TRACE_EVENT(f2fs_issue_flush, | 990 | TRACE_EVENT(f2fs_issue_flush, |
991 | 991 | ||
992 | TP_PROTO(struct super_block *sb, bool nobarrier, bool flush_merge), | 992 | TP_PROTO(struct super_block *sb, unsigned int nobarrier, |
993 | unsigned int flush_merge), | ||
993 | 994 | ||
994 | TP_ARGS(sb, nobarrier, flush_merge), | 995 | TP_ARGS(sb, nobarrier, flush_merge), |
995 | 996 | ||
996 | TP_STRUCT__entry( | 997 | TP_STRUCT__entry( |
997 | __field(dev_t, dev) | 998 | __field(dev_t, dev) |
998 | __field(bool, nobarrier) | 999 | __field(unsigned int, nobarrier) |
999 | __field(bool, flush_merge) | 1000 | __field(unsigned int, flush_merge) |
1000 | ), | 1001 | ), |
1001 | 1002 | ||
1002 | TP_fast_assign( | 1003 | TP_fast_assign( |