staging: octeon: Switch unnecessary /** to /*
PATCH 1/1 staging: octeon: Switch unnecessary /** to /*
Fix kernel-doc comment used as regular comment. Fix 'cannot understand function prototype' Warning
--- drivers/staging/octeon/ethernet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/octeon/ethernet.c +3 -3
@@ -86,19 +86,19 @@ int rx_napi_weight = 32;module_param (rx_napi_weight, int,0444 );MODULE_PARM_DESC (rx_napi_weight,"The NAPI WEIGHT parameter." ); -/** +/* * cvm_oct_poll_queue - Workqueue for polling operations. */ struct workqueue_struct *cvm_oct_poll_queue; -/** +/* * cvm_oct_poll_queue_stopping - flag to indicate polling should stop. * * Set to one right before cvm_oct_poll_queue is destroyed. */ atomic_t cvm_oct_poll_queue_stopping =ATOMIC_INIT (0 ); -/** +/* * Array of every ethernet device owned by this driver indexed by * the ipd input port number. */
Signature · 1 line
1.9.1
Quoted 2 lines · Cristina Moraru
Fix kernel-doc comment used as regular comment. Fix 'cannot understand function prototype' Warning
Not sure to understand this one. There seem to be only the changes on the comment starting characters, as described in the subject line.
julia
Quoted 43 lines
Signed-off-by Cristina Moraru <[email protected]>--- drivers/staging/octeon/ethernet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/staging/octeon/ethernet.c +3
-3@@ -86,19 +86,19 @@ int rx_napi_weight = 32;module_param (rx_napi_weight, int,0444 );MODULE_PARM_DESC (rx_napi_weight,"The NAPI WEIGHT parameter." ); -/** +/* * cvm_oct_poll_queue - Workqueue for polling operations. */ struct workqueue_struct *cvm_oct_poll_queue; -/** +/* * cvm_oct_poll_queue_stopping - flag to indicate polling should stop. * * Set to one right before cvm_oct_poll_queue is destroyed. */ atomic_t cvm_oct_poll_queue_stopping =ATOMIC_INIT (0 ); -/** +/* * Array of every ethernet device owned by this driver indexed by * the ipd input port number. */ Signature · 8 lines
1.9.1 -- You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1443811785-50375-1-git-send-email-cristina.moraru09%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Yes, I changed "/**" to "/*" where "/**" was used in regular comments and not kernel-doc comments.
For example, the code:
Quoted 4 lines
/**
*cvm_oct_poll_queue- Workqueue for polling operations. */
structworkqueue_struct*cvm_oct_poll_queue;
caused the following warning when I run the script kernel-doc:
Quoted 1 line
ethernet.c:92: warning: cannot understand function prototype: 'struct
workqueue_struct *cvm_oct_poll_queue;'
As far as I understood it, kernel-doc script failed to parse the comment because it did not have the correct formatting for a kernel-doc comment for a function or structure. But the comment was a regular comment describing the use of one variable although it was using the reserved "/**".
2015-10-02 23:26 GMT+03:00 Julia Lawall <[email protected]>:
Quoted 59 lines · Cristina Moraru
Quoted 3 lines
Fix kernel-doc comment used as regular comment. Fix 'cannot understand function prototype' Warning
Not sure to understand this one. There seem to be only the changes on the comment starting characters, as described in the subject line.
julia
Review
Quoted 7 lines
Signed-off-by Cristina Moraru <[email protected]>--- drivers/staging/octeon/ethernet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/staging/octeon/ethernet.cQuoted 29 lines
index 87ab6c6..14eb4af 100644
drivers/staging/octeon/ethernet.c +3
-4@@ -86,19 +86,19 @@ int rx_napi_weight = 32;module_param (rx_napi_weight, int,0444 );MODULE_PARM_DESC (rx_napi_weight,"The NAPI WEIGHT parameter." ); -/** +/* * cvm_oct_poll_queue - Workqueue for polling operations. */ struct workqueue_struct *cvm_oct_poll_queue; -/** +/* * cvm_oct_poll_queue_stopping - flag to indicate polling should stop. * * Set to one right before cvm_oct_poll_queue is destroyed. */ atomic_t cvm_oct_poll_queue_stopping =ATOMIC_INIT (0 ); -/** +/* * Array of every ethernet device owned by this driver indexed by * the ipd input port number. */ --1.9.1
Quoted 2 lines
--
You received this message because you are subscribed to the GoogleGroups "outreachy-kernel" group.
Quoted 1 line
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
Quoted 2 lines
To post to this group, send email to [email protected]. To view this discussion on the web visit
Quoted 2 lines
For more options, visit https://groups.google.com/d/optout.
Quoted 10 lines · Cristina-Gabriela Moraru
Yes, I changed "/**" to "/*" where "/**" was used in regular comments and not kernel-doc comments.
For example, the code:
Quoted 4 lines
/**
*cvm_oct_poll_queue- Workqueue for polling operations. */
structworkqueue_struct*cvm_oct_poll_queue;
Quoted 3 lines
caused the following warning when I run the script kernel-doc:
Quoted 1 line
ethernet.c:92: warning: cannot understand function prototype: 'struct
workqueue_struct*cvm_oct_poll_queue;'
OK, it's not so clear, because your commit message doesn't say what tool generated the warning. One would normally think that a warning about the function prototype would relate to the function code in some way.
But overall, there seems to be only one kind of fix, not two, so it would be better to put only the message that best corresponds to what the fix does.
Remember not to top post.
julia
Quoted 73 lines
As far as I understood it, kernel-doc script failed to parse the comment because it did not have the correct formatting for a kernel-doc comment for a function or structure. But the comment was a regular comment describing the use of one variable although it was using the reserved "/**".
2015-10-02 23:26 GMT+03:00 Julia Lawall <[email protected]>:
On Fri, 2 Oct 2015, Cristina Moraru wrote: > Fix kernel-doc comment used as regular comment. > Fix 'cannot understand function prototype' Warning Not sure to understand this one. There seem to be only the changes on the comment starting characters, as described in the subject line. julia > > Signed-off-by: Cristina Moraru <[email protected]> > --- > drivers/staging/octeon/ethernet.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/octeon/ethernet.c b/drivers/staging/octeon/ethernet.c > index 87ab6c6..14eb4af 100644 > --- a/drivers/staging/octeon/ethernet.c > +++ b/drivers/staging/octeon/ethernet.c > @@ -86,19 +86,19 @@ int rx_napi_weight = 32; > module_param(rx_napi_weight, int, 0444); > MODULE_PARM_DESC(rx_napi_weight, "The NAPI WEIGHT parameter."); > > -/** > +/* > * cvm_oct_poll_queue - Workqueue for polling operations. > */ > struct workqueue_struct *cvm_oct_poll_queue; > > -/** > +/* > * cvm_oct_poll_queue_stopping - flag to indicate polling should stop. > * > * Set to one right before cvm_oct_poll_queue is destroyed. > */ > atomic_t cvm_oct_poll_queue_stopping = ATOMIC_INIT(0); > > -/** > +/* > * Array of every ethernet device owned by this driver indexed by > * the ipd input port number. > */ > -- > 1.9.1 >Quoted 2 lines
--
You received this message because you are subscribed to the GoogleGroups "outreachy-kernel" group.
Quoted 1 line
To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected].
Quoted 1 line
To post to this group, send email to
Quoted 1 line
To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/1443811785-50375-1-git-s
end-email-cristina.moraru09%40gmail.com.
Quoted 2 lines
For more options, visit https://groups.google.com/d/optout.