]> git.baikalelectronics.ru Git - kernel.git/commitdiff
block: Make ioprio_best() static
authorJan Kara <jack@suse.cz>
Thu, 23 Jun 2022 07:48:29 +0000 (09:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 27 Jun 2022 12:29:12 +0000 (06:29 -0600)
Nobody outside of block/ioprio.c uses it.

Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220623074840.5960-4-jack@suse.cz
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/ioprio.c
include/linux/ioprio.h

index c4e3476155a1965b73e4590525cd2e7cd8626734..8c46f672a0ba9355f9c0c75ef2fceb539ca16a3b 100644 (file)
@@ -180,7 +180,7 @@ out:
        return ret;
 }
 
-int ioprio_best(unsigned short aprio, unsigned short bprio)
+static int ioprio_best(unsigned short aprio, unsigned short bprio)
 {
        if (!ioprio_valid(aprio))
                aprio = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_BE, IOPRIO_BE_NORM);
index 9752cf4a9c7cbb2625f523e889bf30ca7f026dff..7578d4f6a969a419a8e39e38a8886dc9119c6973 100644 (file)
@@ -60,11 +60,6 @@ static inline int get_current_ioprio(void)
        return __get_task_ioprio(current);
 }
 
-/*
- * For inheritance, return the highest of the two given priorities
- */
-extern int ioprio_best(unsigned short aprio, unsigned short bprio);
-
 extern int set_task_ioprio(struct task_struct *task, int ioprio);
 
 #ifdef CONFIG_BLOCK