diff options
author | Matthias Kaehlcke <mka@chromium.org> | 2017-05-27 00:22:37 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-05-30 18:49:44 +0300 |
commit | 03ea8ad78cfb2910862c8dfcd2a627fc04097db2 (patch) | |
tree | c2fcead9f0031a8732a249fb045d5f270927fb5c /block/cfq-iosched.c | |
parent | 685c9b24ad5090e7a74781c4784fc12e0a04a176 (diff) | |
download | linux-03ea8ad78cfb2910862c8dfcd2a627fc04097db2.tar.xz |
cfq-iosched: Delete unused function min_vdisktime()
This fixes the following warning when building with clang:
block/cfq-iosched.c:970:19: error: unused function 'min_vdisktime'
[-Werror,-Wunused-function]
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r-- | block/cfq-iosched.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index da69b079725f..f57bc7d5c483 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c @@ -978,15 +978,6 @@ static inline u64 max_vdisktime(u64 min_vdisktime, u64 vdisktime) return min_vdisktime; } -static inline u64 min_vdisktime(u64 min_vdisktime, u64 vdisktime) -{ - s64 delta = (s64)(vdisktime - min_vdisktime); - if (delta < 0) - min_vdisktime = vdisktime; - - return min_vdisktime; -} - static void update_min_vdisktime(struct cfq_rb_root *st) { struct cfq_group *cfqg; |