summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2017-05-26 23:22:37 +0200
committerJens Axboe <axboe@fb.com>2017-05-30 17:49:44 +0200
commit03ea8ad78cfb2910862c8dfcd2a627fc04097db2 (patch)
treec2fcead9f0031a8732a249fb045d5f270927fb5c
parentnbd: add FUA op support (diff)
downloadlinux-03ea8ad78cfb2910862c8dfcd2a627fc04097db2.tar.xz
linux-03ea8ad78cfb2910862c8dfcd2a627fc04097db2.zip
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>
-rw-r--r--block/cfq-iosched.c9
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;