diff options
author | Fabian Frederick | 2014-06-10 20:04:50 +0200 |
---|---|---|
committer | Jens Axboe | 2014-06-10 21:13:11 +0200 |
commit | b5097e956a4d2919ee248d6481e4204c5568ed5c (patch) | |
tree | cbe963a2fdac6835e79079165de6d9044cb351bb /block | |
parent | block: ensure that bio_add_page() always accepts a page for an empty bio (diff) | |
download | kernel-qcow2-linux-b5097e956a4d2919ee248d6481e4204c5568ed5c.tar.gz kernel-qcow2-linux-b5097e956a4d2919ee248d6481e4204c5568ed5c.tar.xz kernel-qcow2-linux-b5097e956a4d2919ee248d6481e4204c5568ed5c.zip |
block: add __init to elv_register
elv_register is only called by elevator init functions:
__init cfq_init
__init deadline_init
__init noop_init
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/elevator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/elevator.c b/block/elevator.c index 1e01b66a0b92..f35edddfe9b5 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -845,7 +845,7 @@ void elv_unregister_queue(struct request_queue *q) } EXPORT_SYMBOL(elv_unregister_queue); -int elv_register(struct elevator_type *e) +int __init elv_register(struct elevator_type *e) { char *def = ""; |