From 51082647f16262785dcb41cdcf52fbb6de2ff4d6 Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Wed, 10 Jun 2009 10:06:24 +0800 Subject: [PATCH] --- yaml --- r: 146224 b: refs/heads/master c: f1db457ce6e2f63cb01022f58c0c023838958bd1 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/blktrace_api.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index a8b13fbc1dc3..5fd9cc4ac07d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 110bf2b764eb6026b868d84499263cb24b1bcc8d +refs/heads/master: f1db457ce6e2f63cb01022f58c0c023838958bd1 diff --git a/trunk/include/linux/blktrace_api.h b/trunk/include/linux/blktrace_api.h index c7ec31dd04c9..7e4350ece0f8 100644 --- a/trunk/include/linux/blktrace_api.h +++ b/trunk/include/linux/blktrace_api.h @@ -218,7 +218,7 @@ static inline int blk_trace_init_sysfs(struct device *dev) #endif /* CONFIG_BLK_DEV_IO_TRACE */ -#ifdef CONFIG_EVENT_TRACING +#if defined(CONFIG_EVENT_TRACING) && defined(CONFIG_BLOCK) static inline int blk_cmd_buf_len(struct request *rq) { @@ -229,7 +229,7 @@ extern void blk_dump_cmd(char *buf, struct request *rq); extern void blk_fill_rwbs(char *rwbs, u32 rw, int bytes); extern void blk_fill_rwbs_rq(char *rwbs, struct request *rq); -#endif /* CONFIG_EVENT_TRACING */ +#endif /* CONFIG_EVENT_TRACING && CONFIG_BLOCK */ #endif /* __KERNEL__ */ #endif