rsi: fix comment syntax in file headers
Subsystems (3)
cover rsi: fix comment syntax in file headers
The opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
There are files in drivers/net/wireless/rsi which follow this syntax in their file headers, i.e. start with '/**' like comments, which causes unexpected warnings from kernel-doc.
E.g., running scripts/kernel-doc -none on drivers/net/wireless/rsi/rsi_coex.h causes this warning:
"warning: wrong kernel-doc identifier on line:
* Copyright (c) 2018 Redpine Signals Inc."
Similarly for other files too.
Provide a simple fix by replacing the kernel-doc like comment syntax with general format, i.e. "/*", to prevent kernel-doc from parsing it.
* The patch series applies perfectly on next-20210312
Aditya Srivastava (10):
rsi: rsi_boot_params: fix file header comment syntax
rsi: rsi_coex: fix file header comment syntax
rsi: rsi_ps: fix file header comment syntax
rsi: rsi_common: fix file header comment syntax
rsi: rsi_mgmt: fix file header comment syntax
rsi: rsi_main: fix file header comment syntax
rsi: rsi_hal: fix file header comment syntax
rsi: rsi_debugfs: fix file header comment syntax
rsi: rsi_sdio: fix file header comment syntax
rsi: rsi_usb: fix file header comment syntax
drivers/net/wireless/rsi/rsi_boot_params.h | 2 +- drivers/net/wireless/rsi/rsi_coex.h | 2 +- drivers/net/wireless/rsi/rsi_common.h | 2 +- drivers/net/wireless/rsi/rsi_debugfs.h | 2 +- drivers/net/wireless/rsi/rsi_hal.h | 2 +- drivers/net/wireless/rsi/rsi_main.h | 2 +- drivers/net/wireless/rsi/rsi_mgmt.h | 2 +- drivers/net/wireless/rsi/rsi_ps.h | 2 +- drivers/net/wireless/rsi/rsi_sdio.h | 2 +- drivers/net/wireless/rsi/rsi_usb.h | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-)
Signature · 6 lines
2.17.1 _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
PATCH 1/10 rsi: rsi_boot_params: fix file header comment syntax
The opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
The header comment used in drivers/net/wireless/rsi/rsi_boot_params.h follows kernel-doc syntax, i.e. starts with '/**'. But the content inside the comment does not comply with kernel-doc specifications (i.e., function, struct, etc).
This causes unwelcomed warning from kernel-doc:
"warning: wrong kernel-doc identifier on line:
* Copyright (c) 2014 Redpine Signals Inc."
Replace this comment syntax with general comment format, i.e. '/*' to prevent kernel-doc from parsing these
--- drivers/net/wireless/rsi/rsi_boot_params.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/rsi/rsi_boot_params.h +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2014 Redpine Signals Inc. * * Permission to use, copy, modify, and/or distribute this software for any
Signature · 6 lines
2.17.1 _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
PATCH 2/10 rsi: rsi_coex: fix file header comment syntax
In reply to Aditya SrivastavaThe opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
The header comment used in drivers/net/wireless/rsi/rsi_coex.h follows kernel-doc syntax, i.e. starts with '/**'. But the content inside the comment does not comply with kernel-doc specifications (i.e., function, struct, etc).
This causes unwelcomed warning from kernel-doc:
"warning: wrong kernel-doc identifier on line:
* Copyright (c) 2018 Redpine Signals Inc."
Replace this comment syntax with general comment format, i.e. '/*' to prevent kernel-doc from parsing it.
--- drivers/net/wireless/rsi/rsi_coex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/rsi/rsi_coex.h +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2018 Redpine Signals Inc. * * Permission to use, copy, modify, and/or distribute this software for any
Signature · 6 lines
2.17.1 _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
PATCH 3/10 rsi: rsi_ps: fix file header comment syntax
In reply to Aditya SrivastavaThe opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
The header comment used in drivers/net/wireless/rsi/rsi_ps.h follows kernel-doc syntax, i.e. starts with '/**'. But the content inside the comment does not comply with kernel-doc specifications (i.e., function, struct, etc).
This causes unwelcomed warning from kernel-doc:
"warning: wrong kernel-doc identifier on line:
* Copyright (c) 2017 Redpine Signals Inc."
Replace this comment syntax with general comment format, i.e. '/*' to prevent kernel-doc from parsing it.
--- drivers/net/wireless/rsi/rsi_ps.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/rsi/rsi_ps.h +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2017 Redpine Signals Inc. * * Permission to use, copy, modify, and/or distribute this software for any
Signature · 6 lines
2.17.1 _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
PATCH 4/10 rsi: rsi_common: fix file header comment syntax
In reply to Aditya SrivastavaThe opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
The header comment used in drivers/net/wireless/rsi/rsi_common.h follows kernel-doc syntax, i.e. starts with '/**'. But the content inside the comment does not comply with kernel-doc specifications (i.e., function, struct, etc).
This causes unwelcomed warning from kernel-doc:
"warning: wrong kernel-doc identifier on line:
* Copyright (c) 2014 Redpine Signals Inc."
Replace this comment syntax with general comment format, i.e. '/*' to prevent kernel-doc from parsing it.
--- drivers/net/wireless/rsi/rsi_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/rsi/rsi_common.h +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2014 Redpine Signals Inc. * * Permission to use, copy, modify, and/or distribute this software for any
Signature · 6 lines
2.17.1 _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
PATCH 5/10 rsi: rsi_mgmt: fix file header comment syntax
In reply to Aditya SrivastavaThe opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
The header comment used in drivers/net/wireless/rsi/rsi_mgmt.h follows kernel-doc syntax, i.e. starts with '/**'. But the content inside the comment does not comply with kernel-doc specifications (i.e., function, struct, etc).
This causes unwelcomed warning from kernel-doc:
"warning: wrong kernel-doc identifier on line:
* Copyright (c) 2014 Redpine Signals Inc."
Replace this comment syntax with general comment format, i.e. '/*' to prevent kernel-doc from parsing it.
--- drivers/net/wireless/rsi/rsi_mgmt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/rsi/rsi_mgmt.h +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2014 Redpine Signals Inc. * * Permission to use, copy, modify, and/or distribute this software for any
Signature · 6 lines
2.17.1 _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
PATCH 6/10 rsi: rsi_main: fix file header comment syntax
In reply to Aditya SrivastavaThe opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
The header comment used in drivers/net/wireless/rsi/rsi_main.h follows kernel-doc syntax, i.e. starts with '/**'. But the content inside the comment does not comply with kernel-doc specifications (i.e., function, struct, etc).
This causes unwelcomed warning from kernel-doc:
"warning: wrong kernel-doc identifier on line:
* Copyright (c) 2014 Redpine Signals Inc."
Replace this comment syntax with general comment format, i.e. '/*' to prevent kernel-doc from parsing it.
--- drivers/net/wireless/rsi/rsi_main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/rsi/rsi_main.h +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2014 Redpine Signals Inc. * * Permission to use, copy, modify, and/or distribute this software for any
Signature · 6 lines
2.17.1 _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
PATCH 7/10 rsi: rsi_hal: fix file header comment syntax
In reply to Aditya SrivastavaThe opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
The header comment used in drivers/net/wireless/rsi/rsi_hal.h follows kernel-doc syntax, i.e. starts with '/**'. But the content inside the comment does not comply with kernel-doc specifications (i.e., function, struct, etc).
This causes unwelcomed warning from kernel-doc:
"warning: wrong kernel-doc identifier on line:
* Copyright (c) 2017 Redpine Signals Inc."
Replace this comment syntax with general comment format, i.e. '/*' to prevent kernel-doc from parsing it.
--- drivers/net/wireless/rsi/rsi_hal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/rsi/rsi_hal.h +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2017 Redpine Signals Inc. * * Permission to use, copy, modify, and/or distribute this software for any
Signature · 6 lines
2.17.1 _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
PATCH 8/10 rsi: rsi_debugfs: fix file header comment syntax
In reply to Aditya SrivastavaThe opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
The header comment used in drivers/net/wireless/rsi/rsi_debugfs.h follows kernel-doc syntax, i.e. starts with '/**'. But the content inside the comment does not comply with kernel-doc specifications (i.e., function, struct, etc).
This causes unwelcomed warning from kernel-doc:
"warning: wrong kernel-doc identifier on line:
* Copyright (c) 2014 Redpine Signals Inc."
Replace this comment syntax with general comment format, i.e. '/*' to prevent kernel-doc from parsing it.
--- drivers/net/wireless/rsi/rsi_debugfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/rsi/rsi_debugfs.h +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2014 Redpine Signals Inc. * * Permission to use, copy, modify, and/or distribute this software for any
Signature · 6 lines
2.17.1 _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
PATCH 9/10 rsi: rsi_sdio: fix file header comment syntax
In reply to Aditya SrivastavaThe opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
The header comment used in drivers/net/wireless/rsi/rsi_sdio.h follows kernel-doc syntax, i.e. starts with '/**'. But the content inside the comment does not comply with kernel-doc specifications (i.e., function, struct, etc).
This causes unwelcomed warning from kernel-doc:
"warning: Cannot understand * @section LICENSE
on line 2 - I thought it was a doc line"
Replace this comment syntax with general comment format, i.e. '/*' to prevent kernel-doc from parsing it.
--- drivers/net/wireless/rsi/rsi_sdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/rsi/rsi_sdio.h +1 -1
@@ -1,4 +1,4 @@ -/** +/* * @section LICENSE * Copyright (c) 2014 Redpine Signals Inc. *
Signature · 6 lines
2.17.1 _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
PATCH 10/10 rsi: rsi_usb: fix file header comment syntax
In reply to Aditya SrivastavaThe opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
The header comment used in drivers/net/wireless/rsi/rsi_usb.h follows kernel-doc syntax, i.e. starts with '/**'. But the content inside the comment does not comply with kernel-doc specifications (i.e., function, struct, etc).
This causes unwelcomed warning from kernel-doc:
"warning: Cannot understand * @section LICENSE
on line 2 - I thought it was a doc line"
Replace this comment syntax with general comment format, i.e. '/*' to prevent kernel-doc from parsing it.
--- drivers/net/wireless/rsi/rsi_usb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/rsi/rsi_usb.h +1 -1
@@ -1,4 +1,4 @@ -/** +/* * @section LICENSE * Copyright (c) 2014 Redpine Signals Inc. *
Signature · 6 lines
2.17.1 _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
Quoted 12 lines · Aditya Srivastava
The opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
There are files indrivers/net/wireless/rsiwhich follow this syntax in their file headers, i.e. start with '/**' like comments, which causes unexpected warnings from kernel-doc.E.g., running
scripts/kernel-doc-none ondrivers/net/wireless/rsi/rsi_coex.hcauses this warning:
"warning: wrong kernel-doc identifier on line:
* Copyright (c) 2018 Redpine Signals Inc."
Quoted 5 lines
Similarly for other files too.
Provide a simple fix by replacing the kernel-doc like comment syntax with general format, i.e. "/*", to prevent kernel-doc from parsing it.
Aditya, thanks for starting to clean up the repository following your investigation on kernel-doc warnings.
The changes to all those files look sound.
However I think these ten patches are really just _one change_, and hence, all can be put into a single commit.
Hints that suggest it is one change:
- The commit message is pretty much the same (same motivation, same explanation, same design decisions)
- The change is basically the same (same resulting change in different files)
- All patches are sent to the same responsible people, all of the patches would be reviewed and accepted by the same people.
- All ten patches can be reviewed at once.
How about merging all ten patches into one patch and sending out a v2.
Lukas
_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
Quoted 19 lines · Lukas Bulwahn
Quoted 12 lines · Aditya Srivastava
The opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
There are files indrivers/net/wireless/rsiwhich follow this syntax in their file headers, i.e. start with '/**' like comments, which causes unexpected warnings from kernel-doc.E.g., running
scripts/kernel-doc-none ondrivers/net/wireless/rsi/rsi_coex.hcauses this warning:
"warning: wrong kernel-doc identifier on line:
* Copyright (c) 2018 Redpine Signals Inc."Quoted 5 lines
Similarly for other files too.
Provide a simple fix by replacing the kernel-doc like comment syntax with general format, i.e. "/*", to prevent kernel-doc from parsing it.
Quoted 7 lines
Aditya, thanks for starting to clean up the repository following your investigation on kernel-doc warnings.
The changes to all those files look sound.
However I think these ten patches are really just
_onechange_, and hence, all can be put into a single commit.
I agree, this is one logical change to a single driver so one patch will suffice. I think for cleanup changes like this one patch per driver is a good approach.
Signature · 7 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
Quoted 24 lines · Kalle Valo
Quoted 22 lines · Lukas Bulwahn
Quoted 12 lines · Aditya Srivastava
The opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
There are files indrivers/net/wireless/rsiwhich follow this syntax in their file headers, i.e. start with '/**' like comments, which causes unexpected warnings from kernel-doc.E.g., running
scripts/kernel-doc-none ondrivers/net/wireless/rsi/rsi_coex.hcauses this warning:
"warning: wrong kernel-doc identifier on line:
* Copyright (c) 2018 Redpine Signals Inc."Quoted 5 lines
Similarly for other files too.
Provide a simple fix by replacing the kernel-doc like comment syntax with general format, i.e. "/*", to prevent kernel-doc from parsing it.
Aditya, thanks for starting to clean up the repository following your investigation on kernel-doc warnings.
Quoted 9 lines
Quoted 4 lines
The changes to all those files look sound.
However I think these ten patches are really just
_onechange_, and hence, all can be put into a single commit.I agree, this is one logical change to a single driver so one patch will suffice. I think for cleanup changes like this one patch per driver is a good approach.
Thanks for the feedback Lukas and Kalle. I will be sending the modified v2.
Thanks
Aditya
_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees