diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-01-26 12:00:56 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-26 12:30:01 -0500 |
commit | 157f9c00e88529ed84bd7d581a40d411e5414cf0 (patch) | |
tree | 7d7360cd76c5339c831e0e5ffd3cce5a659a9614 /include/linux/blktrace_api.h | |
parent | c71a896154119f4ca9e89d6078f5f63ad60ef199 (diff) |
tracing/blktrace: fix up checkpatch reported problems in ftrace plugin patch
Also make sure sparse (make C=2 block/blktrace.o) is happy too.
Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
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 1dba3493d520..59b4b2e8ab67 100644 --- a/include/linux/blktrace_api.h +++ b/include/linux/blktrace_api.h | |||
@@ -142,6 +142,9 @@ struct blk_user_trace_setup { | |||
142 | 142 | ||
143 | #ifdef __KERNEL__ | 143 | #ifdef __KERNEL__ |
144 | #if defined(CONFIG_BLK_DEV_IO_TRACE) | 144 | #if defined(CONFIG_BLK_DEV_IO_TRACE) |
145 | |||
146 | #include <linux/sysfs.h> | ||
147 | |||
145 | struct blk_trace { | 148 | struct blk_trace { |
146 | int trace_state; | 149 | int trace_state; |
147 | struct rchan *rchan; | 150 | struct rchan *rchan; |
@@ -192,6 +195,8 @@ extern int blk_trace_setup(struct request_queue *q, char *name, dev_t dev, | |||
192 | extern int blk_trace_startstop(struct request_queue *q, int start); | 195 | extern int blk_trace_startstop(struct request_queue *q, int start); |
193 | extern int blk_trace_remove(struct request_queue *q); | 196 | extern int blk_trace_remove(struct request_queue *q); |
194 | 197 | ||
198 | extern struct attribute_group blk_trace_attr_group; | ||
199 | |||
195 | #else /* !CONFIG_BLK_DEV_IO_TRACE */ | 200 | #else /* !CONFIG_BLK_DEV_IO_TRACE */ |
196 | #define blk_trace_ioctl(bdev, cmd, arg) (-ENOTTY) | 201 | #define blk_trace_ioctl(bdev, cmd, arg) (-ENOTTY) |
197 | #define blk_trace_shutdown(q) do { } while (0) | 202 | #define blk_trace_shutdown(q) do { } while (0) |