aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2009-06-09 22:06:24 -0400
committerIngo Molnar <mingo@elte.hu>2009-06-10 05:55:06 -0400
commitf1db457ce6e2f63cb01022f58c0c023838958bd1 (patch)
treecc75e087ddfcbdf0a1f15585b4b844f58691cf26
parent110bf2b764eb6026b868d84499263cb24b1bcc8d (diff)
tracing/events: convert block trace points to TRACE_EVENT(), fix !CONFIG_BLOCK
Fix building failures when CONFIG_BLOCK == n. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> LKML-Reference: <4A2F1520.8020003@cn.fujitsu.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--include/linux/blktrace_api.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/blktrace_api.h b/include/linux/blktrace_api.h
index c7ec31dd04c9..7e4350ece0f8 100644
--- a/include/linux/blktrace_api.h
+++ b/include/linux/blktrace_api.h
@@ -218,7 +218,7 @@ static inline int blk_trace_init_sysfs(struct device *dev)
218 218
219#endif /* CONFIG_BLK_DEV_IO_TRACE */ 219#endif /* CONFIG_BLK_DEV_IO_TRACE */
220 220
221#ifdef CONFIG_EVENT_TRACING 221#if defined(CONFIG_EVENT_TRACING) && defined(CONFIG_BLOCK)
222 222
223static inline int blk_cmd_buf_len(struct request *rq) 223static inline int blk_cmd_buf_len(struct request *rq)
224{ 224{
@@ -229,7 +229,7 @@ extern void blk_dump_cmd(char *buf, struct request *rq);
229extern void blk_fill_rwbs(char *rwbs, u32 rw, int bytes); 229extern void blk_fill_rwbs(char *rwbs, u32 rw, int bytes);
230extern void blk_fill_rwbs_rq(char *rwbs, struct request *rq); 230extern void blk_fill_rwbs_rq(char *rwbs, struct request *rq);
231 231
232#endif /* CONFIG_EVENT_TRACING */ 232#endif /* CONFIG_EVENT_TRACING && CONFIG_BLOCK */
233 233
234#endif /* __KERNEL__ */ 234#endif /* __KERNEL__ */
235#endif 235#endif