Skip to content

Commit f7df852

Browse files
arndbPeter Zijlstra
authored andcommitted
sched: Make task_vruntime_update() prototype visible
Having the prototype next to the caller but not visible to the callee causes a W=1 warning: kernel/sched/fair.c:11985:6: error: no previous prototype for 'task_vruntime_update' [-Werror=missing-prototypes] Move this to a header, as we do for all other function declarations. Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Vincent Guittot <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c0bdfd7 commit f7df852

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/sched/sched.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,7 @@ static inline raw_spinlock_t *__rq_lockp(struct rq *rq)
12451245

12461246
bool cfs_prio_less(const struct task_struct *a, const struct task_struct *b,
12471247
bool fi);
1248+
void task_vruntime_update(struct rq *rq, struct task_struct *p, bool in_fi);
12481249

12491250
/*
12501251
* Helpers to check if the CPU's core cookie matches with the task's cookie

0 commit comments

Comments
 (0)