Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

block: Make ioprio_best() static

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>

authored by

Jan Kara and committed by
Jens Axboe
fc25545e 893e5d32

+1 -6
+1 -1
block/ioprio.c
··· 180 180 return ret; 181 181 } 182 182 183 - int ioprio_best(unsigned short aprio, unsigned short bprio) 183 + static int ioprio_best(unsigned short aprio, unsigned short bprio) 184 184 { 185 185 if (!ioprio_valid(aprio)) 186 186 aprio = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_BE, IOPRIO_BE_NORM);
-5
include/linux/ioprio.h
··· 60 60 return __get_task_ioprio(current); 61 61 } 62 62 63 - /* 64 - * For inheritance, return the highest of the two given priorities 65 - */ 66 - extern int ioprio_best(unsigned short aprio, unsigned short bprio); 67 - 68 63 extern int set_task_ioprio(struct task_struct *task, int ioprio); 69 64 70 65 #ifdef CONFIG_BLOCK