aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blktrace_api.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-01-26 12:00:56 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-26 12:30:01 -0500
commit157f9c00e88529ed84bd7d581a40d411e5414cf0 (patch)
tree7d7360cd76c5339c831e0e5ffd3cce5a659a9614 /include/linux/blktrace_api.h
parentc71a896154119f4ca9e89d6078f5f63ad60ef199 (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.h5
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
145struct blk_trace { 148struct 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,
192extern int blk_trace_startstop(struct request_queue *q, int start); 195extern int blk_trace_startstop(struct request_queue *q, int start);
193extern int blk_trace_remove(struct request_queue *q); 196extern int blk_trace_remove(struct request_queue *q);
194 197
198extern 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)