diff options
author | Christoph Hellwig <hch@lst.de> | 2018-05-31 13:11:37 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-06-01 09:38:16 -0400 |
commit | a8a275c9c2fb6bc9b45ad3e4187469726e2af7d1 (patch) | |
tree | b771585df1efde4ea463527203d1cc7f967e4193 /block/elevator.c | |
parent | cbf62af3537a5a735594983a87112a8cd08480a3 (diff) |
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/elevator.c')
-rw-r--r-- | block/elevator.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block/elevator.c b/block/elevator.c index 8b64f92e029a..a7baa4687b28 100644 --- a/block/elevator.c +++ b/block/elevator.c | |||
@@ -263,7 +263,6 @@ int elevator_init(struct request_queue *q, char *name) | |||
263 | elevator_put(e); | 263 | elevator_put(e); |
264 | return err; | 264 | return err; |
265 | } | 265 | } |
266 | EXPORT_SYMBOL(elevator_init); | ||
267 | 266 | ||
268 | void elevator_exit(struct request_queue *q, struct elevator_queue *e) | 267 | void elevator_exit(struct request_queue *q, struct elevator_queue *e) |
269 | { | 268 | { |
@@ -276,7 +275,6 @@ void elevator_exit(struct request_queue *q, struct elevator_queue *e) | |||
276 | 275 | ||
277 | kobject_put(&e->kobj); | 276 | kobject_put(&e->kobj); |
278 | } | 277 | } |
279 | EXPORT_SYMBOL(elevator_exit); | ||
280 | 278 | ||
281 | static inline void __elv_rqhash_del(struct request *rq) | 279 | static inline void __elv_rqhash_del(struct request *rq) |
282 | { | 280 | { |