diff options
Diffstat (limited to 'include/linux/blktrace_api.h')
-rw-r--r-- | include/linux/blktrace_api.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/blktrace_api.h b/include/linux/blktrace_api.h index 25379cba237..ed12e8fd8cf 100644 --- a/include/linux/blktrace_api.h +++ b/include/linux/blktrace_api.h | |||
@@ -143,6 +143,9 @@ struct blk_user_trace_setup { | |||
143 | 143 | ||
144 | #ifdef __KERNEL__ | 144 | #ifdef __KERNEL__ |
145 | #if defined(CONFIG_BLK_DEV_IO_TRACE) | 145 | #if defined(CONFIG_BLK_DEV_IO_TRACE) |
146 | |||
147 | #include <linux/sysfs.h> | ||
148 | |||
146 | struct blk_trace { | 149 | struct blk_trace { |
147 | int trace_state; | 150 | int trace_state; |
148 | struct rchan *rchan; | 151 | struct rchan *rchan; |
@@ -193,6 +196,8 @@ extern int blk_trace_setup(struct request_queue *q, char *name, dev_t dev, | |||
193 | extern int blk_trace_startstop(struct request_queue *q, int start); | 196 | extern int blk_trace_startstop(struct request_queue *q, int start); |
194 | extern int blk_trace_remove(struct request_queue *q); | 197 | extern int blk_trace_remove(struct request_queue *q); |
195 | 198 | ||
199 | extern struct attribute_group blk_trace_attr_group; | ||
200 | |||
196 | #else /* !CONFIG_BLK_DEV_IO_TRACE */ | 201 | #else /* !CONFIG_BLK_DEV_IO_TRACE */ |
197 | #define blk_trace_ioctl(bdev, cmd, arg) (-ENOTTY) | 202 | #define blk_trace_ioctl(bdev, cmd, arg) (-ENOTTY) |
198 | #define blk_trace_shutdown(q) do { } while (0) | 203 | #define blk_trace_shutdown(q) do { } while (0) |