projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2da96ac
)
[BLOCK] Better fix for do_blk_trace_setup() for !CONFIG_BLOCK
author
Jens Axboe
<jens.axboe@oracle.com>
Fri, 12 Oct 2007 10:50:07 +0000
(12:50 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Fri, 12 Oct 2007 10:50:07 +0000
(12:50 +0200)
We don't have the request queue definition, so just make it a
macro instead.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
include/linux/blktrace_api.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/blktrace_api.h
b/include/linux/blktrace_api.h
index 2e105a12fe291ee730a2b9fb72f23f632e1aac7b..7e11d23ac36a40db833cdb3bbd6788c92439bc7c 100644
(file)
--- a/
include/linux/blktrace_api.h
+++ b/
include/linux/blktrace_api.h
@@
-290,12
+290,7
@@
static inline void blk_add_trace_remap(struct request_queue *q, struct bio *bio,
#define blk_add_trace_generic(q, rq, rw, what) do { } while (0)
#define blk_add_trace_pdu_int(q, what, bio, pdu) do { } while (0)
#define blk_add_trace_remap(q, bio, dev, f, t) do {} while (0)
-static inline int do_blk_trace_setup(struct request_queue *q,
- struct block_device *bdev,
- struct blk_user_trace_setup *buts)
-{
- return 0;
-}
+#define do_blk_trace_setup(q, bdev, buts) (-ENOTTY)
#endif /* CONFIG_BLK_DEV_IO_TRACE */
#endif /* __KERNEL__ */
#endif