slimbus: Fix struct and documentation alignment in stream.c
PATCH v2 1/1 slimbus: Fix struct and documentation alignment in stream.c
The placement of the segdist_codes array documentation was corrected to conform with kernel documentation guidelines. The @segdist_codes was placed incorrectly within the struct segdist_code documentation block, which led to a potential misinterpretation of the code structure.
The segdist_codes array documentation was moved outside the struct block, and a separate comment block was provided for it. This change ensures that clarity and proper alignment with kernel documentation standards are maintained.
A kernel-doc warning was addressed:
./drivers/slimbus/stream.c:49: warning: Excess struct member 'segdist_codes' description in 'segdist_code'
---
Changes in v2:
- Removed static const keyword from segdist_code structure declaration.
drivers/slimbus/stream.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/slimbus/stream.c +5 -3
@@ -18,15 +18,17 @@* and the first slot of the next consecutive Segment. * @segdist_code: Segment Distribution Code SD[11:0] * @seg_offset_mask: Segment offset mask in SD[11:0] -* @segdist_codes: List of all possible Segmet Distribution codes. */ -static const struct segdist_code { +struct segdist_code {int ratem;int seg_interval;int segdist_code;u32 seg_offset_mask; -} segdist_codes[] = { +}; + +/* segdist_codes - List of all possible Segment Distribution codes. */ +static const struct segdist_code segdist_codes[] = { {1 ,1536 ,0x200 ,0xdff }, {2 ,768 ,0x100 ,0xcff }, {4 ,384 ,0x080 ,0xc7f },
Signature · 1 line
2.25.1
Quoted 32 lines · Amit Vadhavana
The placement of the
segdist_codesarray documentation was corrected to conform with kernel documentation guidelines. The@segdist_codeswas placed incorrectly within the structsegdist_codedocumentation block, which led to a potential misinterpretation of the code structure.The
segdist_codesarray documentation was moved outside the struct block, and a separate comment block was provided for it. This change ensures that clarity and proper alignment with kernel documentation standards are maintained.A kernel-doc warning was addressed:
./drivers/slimbus/stream.c:49: warning: Excess struct member 'segdist_codes' description in 'segdist_code'Signed-off-by Amit Vadhavana <[email protected]>---
Changes in v2:
- Removedstatic constkeyword fromsegdist_codestructure declaration.drivers/slimbus/stream.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)drivers/slimbus/stream.c +0
-2@@ -18,15 +18,17 @@* and the first slot of the next consecutive Segment. * @segdist_code: Segment Distribution Code SD[11:0] * @seg_offset_mask: Segment offset mask in SD[11:0] -* @segdist_codes: List of all possible Segmet Distribution codes. */ -static const struct segdist_code {
drivers/slimbus/stream.c line 30
Quoted 10 lines
drivers/slimbus/stream.c +4
-1+struct segdist_code {int ratem;int seg_interval;int segdist_code;u32 seg_offset_mask; -} segdist_codes[] = { +}; + +/* segdist_codes - List of all possible Segment Distribution codes. */
^ isn't a '@' character missing here?
Make sure to re-build the docs and see whether it looks fine.
Thanks,
- Ricardo.
Quoted 8 lines
drivers/slimbus/stream.c +1
-0+static const struct segdist_code segdist_codes[] = { {1 ,1536 ,0x200 ,0xdff }, {2 ,768 ,0x100 ,0xcff }, {4 ,384 ,0x080 ,0xc7f },Signature · 1 line
2.25.1
Hi Ricardo,
I have rebuilt it again, and there are no any warnings or errors.
Thanks
Amit v
Quoted 63 lines · Ricardo B. Marliere
Quoted 5 lines · Amit Vadhavana
The placement of the
segdist_codesarray documentation was corrected to conform with kernel documentation guidelines. The@segdist_codeswas placed incorrectly within the structsegdist_codedocumentation block, which led to a potential misinterpretation of the code structure.Quoted 7 lines
The
segdist_codesarray documentation was moved outside the struct block, and a separate comment block was provided for it. This change ensures that clarity and proper alignment with kernel documentation standards are maintained.A kernel-doc warning was addressed:
./drivers/slimbus/stream.c:49: warning: Excess struct member'
segdist_codes' description in 'segdist_code'Quoted 5 lines
Signed-off-by Amit Vadhavana <[email protected]>---
Changes in v2:
- Removedstatic constkeyword fromsegdist_codestructuredeclaration.
Quoted 15 lines
drivers/slimbus/stream.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)drivers/slimbus/stream.c +0
-2@@ -18,15 +18,17 @@* and the first slot of the next consecutive Segment. * @segdist_code: Segment Distribution Code SD[11:0] * @seg_offset_mask: Segment offset mask in SD[11:0] -* @segdist_codes: List of all possible Segmet Distribution codes. */ -static const struct segdist_code {drivers/slimbus/stream.c line 30
Quoted 10 lines
drivers/slimbus/stream.c +4
-1+struct segdist_code {int ratem;int seg_interval;int segdist_code;u32 seg_offset_mask; -} segdist_codes[] = { +}; + +/* segdist_codes - List of all possible Segment Distribution codes. */ ^ isn't a '@' character missing here?
Make sure to re-build the docs and see whether it looks fine.
Thanks,
- Ricardo.Quoted 8 lines
drivers/slimbus/stream.c +1
-1+static const struct segdist_code segdist_codes[] = { {1 ,1536 ,0x200 ,0xdff }, {2 ,768 ,0x100 ,0xcff }, {4 ,384 ,0x080 ,0xc7f }, --2.25.1
Ricardo B. Marliere
Reviewed-byHi Amit,
Quoted 3 lines · Amit Vadhavana
Hi Ricardo,
I have rebuilt it again, and there are no any warnings or errors.
Thanks for checking, FWIW:
BTW, I received this message plus another two empty ones. Please check your settings. Also, make sure not to top-post [1].
Best regards,
- Ricardo.
[1] https://en.wikipedia.org/wiki/Posting_style#Top-posting
Quoted 3 lines
Thanks
Amit v
Quoted 12 lines · Ricardo B. Marliere
Hi Amit,
Quoted 3 lines · Amit Vadhavana
Hi Ricardo,
I have rebuilt it again, and there are no any warnings or errors.
Thanks for checking, FWIW:
Reviewed-by Ricardo B. Marliere <[email protected]>
Quoted 14 lines
BTW, I received this message plus another two empty ones. Please check your settings. Also, make sure not to top-post [1].
Best regards,
- Ricardo.[1] https://en.wikipedia.org/wiki/Posting_style#Top-posting
Quoted 3 lines
Thanks
Amit v
Hi Srinivas,
I hope you are well. I am following up on a patch I submitted on 19 Jun regarding a kernel document and Ricardo reviewed the patch. I understand you have a busy schedule, but if you could find some time to review the patch, I would greatly appreciate it.
Your feedback would be invaluable in helping to improve the quality of this contribution.
If there are any changes needed or additional steps I should take, please let me know.
Thanks
Amit V
Hi Srinivas,
I hope you are well. I am following up on a patch I submitted on 19 Jun regarding a kernel document and Ricardo reviewed the patch.
I understand you have a busy schedule, but if you could find some time to review the patch, I would greatly appreciate it.
Your feedback would be invaluable in helping to improve the quality of this contribution.
If there are any changes needed or additional steps I should take, please let me know.
Thanks
Amit V
Quoted 26 lines · Ricardo B. Marliere
Hi Amit,
Quoted 3 lines · Amit Vadhavana
Hi Ricardo,
I have rebuilt it again, and there are no any warnings or errors.
Thanks for checking, FWIW:
Reviewed-by Ricardo B. Marliere <[email protected]>BTW, I received this message plus another two empty ones. Please check your settings. Also, make sure not to top-post [1].
Best regards,
- Ricardo.[1] https://en.wikipedia.org/wiki/Posting_style#Top-posting
Quoted 3 lines
Thanks
Amit v
Quoted 74 lines · Amit Vadhavana
Hi Ricardo,
I have rebuilt it again, and there are no any warnings or errors.
Thanks
Amit vQuoted 63 lines · Ricardo B. Marliere
Quoted 5 lines · Amit Vadhavana
The placement of the
segdist_codesarray documentation was corrected to conform with kernel documentation guidelines. The@segdist_codeswas placed incorrectly within the structsegdist_codedocumentation block, which led to a potential misinterpretation of the code structure.Quoted 7 lines
The
segdist_codesarray documentation was moved outside the struct block, and a separate comment block was provided for it. This change ensures that clarity and proper alignment with kernel documentation standards are maintained.A kernel-doc warning was addressed:
./drivers/slimbus/stream.c:49: warning: Excess struct member'
segdist_codes' description in 'segdist_code'Quoted 5 lines
Signed-off-by Amit Vadhavana <[email protected]>---
Changes in v2:
- Removedstatic constkeyword fromsegdist_codestructuredeclaration.
Quoted 15 lines
drivers/slimbus/stream.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)drivers/slimbus/stream.c +0
-2@@ -18,15 +18,17 @@* and the first slot of the next consecutive Segment. * @segdist_code: Segment Distribution Code SD[11:0] * @seg_offset_mask: Segment offset mask in SD[11:0] -* @segdist_codes: List of all possible Segmet Distribution codes. */ -static const struct segdist_code {drivers/slimbus/stream.c line 30
Quoted 10 lines
drivers/slimbus/stream.c +4
-1+struct segdist_code {int ratem;int seg_interval;int segdist_code;u32 seg_offset_mask; -} segdist_codes[] = { +}; + +/* segdist_codes - List of all possible Segment Distribution codes. */ ^ isn't a '@' character missing here?
Make sure to re-build the docs and see whether it looks fine.
Thanks,
- Ricardo.Quoted 8 lines
drivers/slimbus/stream.c +1
-1+static const struct segdist_code segdist_codes[] = { {1 ,1536 ,0x200 ,0xdff }, {2 ,768 ,0x100 ,0xcff }, {4 ,384 ,0x080 ,0xc7f }, --2.25.1
Quoted 79 lines · Amit Vadhavana
Quoted 76 lines
Hi Ricardo,
I have rebuilt it again, and there are no any warnings or errors.
Thanks
Amit vQuoted 64 lines · Ricardo B. Marliere
Quoted 4 lines · Amit Vadhavana
The placement of the
segdist_codesarray documentation was corrected to conform with kernel documentation guidelines. The@segdist_codeswas placed incorrectly within the structsegdist_codedocumentation block, which led to a potential misinterpretation of the codestructure.
Quoted 8 lines
The
segdist_codesarray documentation was moved outside the struct block, and a separate comment block was provided for it. This change ensures that clarity and proper alignment with kernel documentation standards are maintained.A kernel-doc warning was addressed:
./drivers/slimbus/stream.c:49: warning: Excess struct member'
segdist_codes' description in 'segdist_code'Quoted 5 lines
Signed-off-by Amit Vadhavana <[email protected]>---
Changes in v2:
- Removedstatic constkeyword fromsegdist_codestructuredeclaration.
Quoted 15 lines
drivers/slimbus/stream.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)drivers/slimbus/stream.c +0
-2@@ -18,15 +18,17 @@* and the first slot of the next consecutive Segment. * @segdist_code: Segment Distribution Code SD[11:0] * @seg_offset_mask: Segment offset mask in SD[11:0] -* @segdist_codes: List of all possible Segmet Distribution codes. */ -static const struct segdist_code {drivers/slimbus/stream.c line 30
Quoted 10 lines
drivers/slimbus/stream.c +4
-1+struct segdist_code {int ratem;int seg_interval;int segdist_code;u32 seg_offset_mask; -} segdist_codes[] = { +}; + +/* segdist_codes - List of all possible Segment Distribution codes. */ ^ isn't a '@' character missing here?
Make sure to re-build the docs and see whether it looks fine.
Thanks,
- Ricardo.Quoted 8 lines
drivers/slimbus/stream.c +1
-1+static const struct segdist_code segdist_codes[] = { {1 ,1536 ,0x200 ,0xdff }, {2 ,768 ,0x100 ,0xcff }, {4 ,384 ,0x080 ,0xc7f }, --2.25.1
Srinivas Kandagatla
AppliedQuoted 11 lines · Amit Vadhavana
The placement of the
segdist_codesarray documentation was corrected to conform with kernel documentation guidelines. The@segdist_codeswas placed incorrectly within the structsegdist_codedocumentation block, which led to a potential misinterpretation of the code structure.The
segdist_codesarray documentation was moved outside the struct block, and a separate comment block was provided for it. This change ensures that clarity and proper alignment with kernel documentation standards are maintained.[...]
Applied, thanks!
[1/1] slimbus: Fix struct and documentation alignment in stream.c
commit: cea500f1ad5f6e93e67ab6f9a317d713524732cd
Best regards,
Signature · 1 line
Srinivas Kandagatla <[email protected]>