[PATCH] sched: core.c: Fix outdated comments
From: Tamara Diaconita
Date: Tue Mar 28 2017 - 14:33:11 EST
In d8ac897137a2 (sched/core: Add wrappers for lockdep_(un)pin_lock()),
the prototype for try_to_wake_up local() was changed, but the kerneldoc
comment was not updated, resulting in these warnings in the documentation
build:
.kernel/sched/core.c:2085: warning: Excess function parameter 'cookie' description in 'try_to_wake_up_local'
.kernel/sched/core.c:2085: warning: No description found for parameter 'rf'
Update the comment to match the new 'rf' parameter.
Fixes: d8ac897137a230ec351269f6378017f2decca512
Signed-off-by: Tamara Diaconita <diaconita.tamara@xxxxxxxxx>
---
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 9563838..0d03755 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -2074,7 +2074,7 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags)
/**
* try_to_wake_up_local - try to wake up a local task with rq lock held
* @p: the thread to be awakened
- * @cookie: context's cookie for pinning
+ * @rf: runqueue flags
*
* Put @p on the run-queue if it's not already there. The caller must
* ensure that this_rq() is locked, @p is bound to this_rq() and not
--
2.9.3