summaryrefslogtreecommitdiffstats
path: root/block/blk.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-05-31 19:11:37 +0200
committerJens Axboe <axboe@kernel.dk>2018-06-01 07:38:16 -0600
commita8a275c9c2fb6bc9b45ad3e4187469726e2af7d1 (patch)
treeb771585df1efde4ea463527203d1cc7f967e4193 /block/blk.h
parentcbf62af3537a5a735594983a87112a8cd08480a3 (diff)
downloadlinux-0-day-a8a275c9c2fb6bc9b45ad3e4187469726e2af7d1.tar.gz
linux-0-day-a8a275c9c2fb6bc9b45ad3e4187469726e2af7d1.tar.xz
block: unexport elevator_init/exit
These are only used by the block core. Also move the declarations to block/blk.h. Reported-by: Damien Le Moal <Damien.LeMoal@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Tested-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r--block/blk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk.h b/block/blk.h
index eaf1a8e87d117..a559c05323478 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -231,6 +231,8 @@ static inline void elv_deactivate_rq(struct request_queue *q, struct request *rq
e->type->ops.sq.elevator_deactivate_req_fn(q, rq);
}
+int elevator_init(struct request_queue *, char *);
+void elevator_exit(struct request_queue *, struct elevator_queue *);
int elv_register_queue(struct request_queue *q);
void elv_unregister_queue(struct request_queue *q);