Skip to content

Commit

Permalink
make elv_try_merge() static, kill the dead declaration of
Browse files Browse the repository at this point in the history
elv_try_last_merge().

Signed-off-by: Coywolf Qi Hunt <qiyong@fc-cn.com>
Signed-off-by: Jens Axboe <axboe@suse.de>
  • Loading branch information
Coywolf Qi Hunt authored and Jens Axboe committed Jan 9, 2006
1 parent 1abee6d commit 769db45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ inline int elv_rq_merge_ok(struct request *rq, struct bio *bio)
}
EXPORT_SYMBOL(elv_rq_merge_ok);

inline int elv_try_merge(struct request *__rq, struct bio *bio)
static inline int elv_try_merge(struct request *__rq, struct bio *bio)
{
int ret = ELEVATOR_NO_MERGE;

Expand All @@ -80,7 +80,6 @@ inline int elv_try_merge(struct request *__rq, struct bio *bio)

return ret;
}
EXPORT_SYMBOL(elv_try_merge);

static struct elevator_type *elevator_find(const char *name)
{
Expand Down
2 changes: 0 additions & 2 deletions include/linux/elevator.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ extern ssize_t elv_iosched_store(request_queue_t *, const char *, size_t);
extern int elevator_init(request_queue_t *, char *);
extern void elevator_exit(elevator_t *);
extern int elv_rq_merge_ok(struct request *, struct bio *);
extern int elv_try_merge(struct request *, struct bio *);
extern int elv_try_last_merge(request_queue_t *, struct bio *);

/*
* Return values from elevator merger
Expand Down

0 comments on commit 769db45

Please sign in to comment.