Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1611274

[PATCH] sched: core.c: Fix outdated comments

From Tamara Diaconita <diaconitatamara@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] sched: core.c: Fix outdated comments
Date 2017-03-28 20:40 +0200
Message-ID <tq4ca-3fq-23@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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@gmail.com>
---
 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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] sched: core.c: Fix outdated comments Tamara Diaconita <diaconitatamara@gmail.com> - 2017-03-28 20:40 +0200

csiph-web