Skip to contentSkip to conversation

signal.c: fix kernel-doc warning

PATCH In review Randy Dunlap 3 participants 5 messages May 26, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 signal.c: fix kernel-doc warning

From: Randy Dunlap <[email protected]>

Fix kernel-doc warnings in signal.c:

Warning(kernel/signal.c:2374): No description found for parameter 'nset' Warning(kernel/signal.c:2374): Excess function parameter 'set' description in 'sys_rt_sigprocmask'

---
 kernel/signal.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/signal.c +1 -1
@@ -2365,7 +2365,7 @@ int sigprocmask(int how, sigset_t *set, 
 /**
  *  sys_rt_sigprocmask - change the list of currently blocked signals
  *  @how: whether to add, remove, or set signals
- *  @set: stores pending signals
+ *  @nset: stores pending signals
  *  @oset: previous value of signal mask if non-null
  *  @sigsetsize: size of sigset_t type
  */
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix kernel-doc warnings in signal.c:

Warning(kernel/signal.c:2374): No description found for parameter 'nset' Warning(kernel/signal.c:2374): Excess function parameter 'set' description in 'sys_rt_sigprocmask'

Hi Randy,
I wonder how you can get the warning of the comments.
IMO, gcc can not get the comments' errors or warnings. Maybe you just use scripts for this. Would you mind telling me ;)

Thanks
Harry Wei

Quoted 2 lines
Quoted 16 lines
---
 kernel/signal.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/signal.c +1 -2
@@ -2365,7 +2365,7 @@ int sigprocmask(int how, sigset_t *set, 
 /**
  *  sys_rt_sigprocmask - change the list of currently blocked signals
  *  @how: whether to add, remove, or set signals
- *  @set: stores pending signals
+ *  @nset: stores pending signals
  *  @oset: previous value of signal mask if non-null
  *  @sigsetsize: size of sigset_t type
  */
--
#2 lore raw
Quoted 11 lines · Harry Wei
Quoted 6 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix kernel-doc warnings in signal.c:

Warning(kernel/signal.c:2374): No description found for parameter 'nset' Warning(kernel/signal.c:2374): Excess function parameter 'set' description in 'sys_rt_sigprocmask'

Hi Randy,
I wonder how you can get the warning of the comments.
IMO, gcc can not get the comments' errors or warnings. Maybe you just use scripts for this. Would you mind telling me ;)

Harry,

I just run "make htmldocs" and watch the messages.

Quoted 21 lines

Thanks
Harry Wei

Quoted 2 lines
Quoted 16 lines
---
 kernel/signal.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/signal.c +1 -2
@@ -2365,7 +2365,7 @@ int sigprocmask(int how, sigset_t *set, 
 /**
  *  sys_rt_sigprocmask - change the list of currently blocked signals
  *  @how: whether to add, remove, or set signals
- *  @set: stores pending signals
+ *  @nset: stores pending signals
  *  @oset: previous value of signal mask if non-null
  *  @sigsetsize: size of sigset_t type
  */
--
Signature · 2 lines
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
#3 lore raw
Quoted 8 lines · Randy Dunlap
Quoted 7 lines · Harry Wei
Quoted 6 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix kernel-doc warnings in signal.c:

Warning(kernel/signal.c:2374): No description found for parameter 'nset' Warning(kernel/signal.c:2374): Excess function parameter 'set' description in 'sys_rt_sigprocmask'

Quoted 8 lines
Quoted 4 lines

Hi Randy,
I wonder how you can get the warning of the comments.
IMO, gcc can not get the comments' errors or warnings. Maybe you just use scripts for this. Would you mind telling me ;)

Harry,

I just run "make htmldocs" and watch the messages.

Oh, i see, thanks.

Harry Wei

#4 lore raw
In reply to Randy Dunlap
Quoted 16 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix kernel-doc warnings in signal.c

Warning(kernel/signal.c:2374): No description found for parameter 'nset' Warning(kernel/signal.c:2374): Excess function parameter 'set' description in 'sys_rt_sigprocmask'

---
 kernel/signal.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

kernel/signal.c int sigprocmask(int how, sigset_t *set, · line 2368

Quoted 5 lines
kernel/signal.c +1 -1
@@ -2365,7 +2365,7 @@ int sigprocmask(int how, sigset_t *set, 
 /**
  *  sys_rt_sigprocmask - change the list of currently blocked signals
  *  @how: whether to add, remove, or set signals
- *  @set: stores pending signals
+ *  @nset: stores pending signals

My fault. I changed the name of the argument, but forgot to update the doc.

I'll take this patch, thanks Randy.

Oleg.