@@ -154,7 +154,7 @@ static int get_task_ioprio(struct task_struct *p)
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))
return bprio;
@@ -59,11 +59,6 @@ static inline int get_current_ioprio(void)
return IOPRIO_DEFAULT;
}
-/*
- * 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
Nobody outside of block/ioprio.c uses it. Signed-off-by: Jan Kara <jack@suse.cz> --- block/ioprio.c | 2 +- include/linux/ioprio.h | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-)