make elv_try_merge() static, kill the dead declaration of

elv_try_last_merge().

Signed-off-by: Coywolf Qi Hunt <qiyong@fc-cn.com>
Signed-off-by: Jens Axboe <axboe@suse.de>

authored by

Coywolf Qi Hunt and committed by
Jens Axboe
769db45b 1abee6d2

+1 -4
+1 -2
block/elevator.c
··· 64 64 } 65 65 EXPORT_SYMBOL(elv_rq_merge_ok); 66 66 67 - inline int elv_try_merge(struct request *__rq, struct bio *bio) 67 + static inline int elv_try_merge(struct request *__rq, struct bio *bio) 68 68 { 69 69 int ret = ELEVATOR_NO_MERGE; 70 70 ··· 80 80 81 81 return ret; 82 82 } 83 - EXPORT_SYMBOL(elv_try_merge); 84 83 85 84 static struct elevator_type *elevator_find(const char *name) 86 85 {
-2
include/linux/elevator.h
··· 114 114 extern int elevator_init(request_queue_t *, char *); 115 115 extern void elevator_exit(elevator_t *); 116 116 extern int elv_rq_merge_ok(struct request *, struct bio *); 117 - extern int elv_try_merge(struct request *, struct bio *); 118 - extern int elv_try_last_merge(request_queue_t *, struct bio *); 119 117 120 118 /* 121 119 * Return values from elevator merger