]> git.baikalelectronics.ru Git - kernel.git/commitdiff
bfq: bfq_check_waker() should be static
authorJens Axboe <axboe@kernel.dk>
Tue, 26 Jan 2021 04:15:01 +0000 (21:15 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Jan 2021 04:15:01 +0000 (21:15 -0700)
It's only used in the same file, mark is appropriately static.

Fixes: e60b1ae1136f ("block, bfq: make waker-queue detection more robust")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c

index eaeda18cb8c82b46dbf79e854e06fe999d4b6e51..23e293d2943c5adb0581254a19ef4b99361f9390 100644 (file)
@@ -1952,7 +1952,8 @@ static void bfq_update_io_intensity(struct bfq_queue *bfqq, u64 now_ns)
  *
  * On queue merging all waker information is lost.
  */
-void bfq_check_waker(struct bfq_data *bfqd, struct bfq_queue *bfqq, u64 now_ns)
+static void bfq_check_waker(struct bfq_data *bfqd, struct bfq_queue *bfqq,
+                           u64 now_ns)
 {
        if (!bfqd->last_completed_rq_bfqq ||
            bfqd->last_completed_rq_bfqq == bfqq ||