public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] slimbus: Fix struct and documentation alignment in stream.c
@ 2024-06-16 20:32 Amit Vadhavana
  2024-06-17 17:11 ` Ricardo B. Marliere
  2024-07-03 17:32 ` Srinivas Kandagatla
  0 siblings, 2 replies; 5+ messages in thread
From: Amit Vadhavana @ 2024-06-16 20:32 UTC (permalink / raw)
  To: srinivas.kandagatla, alsa-devel, linux-kernel, rbmarliere, skhan
  Cc: linux-kernel-mentees, av2082000

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'

Signed-off-by: Amit Vadhavana <av2082000@gmail.com>
---
Changes in v2:
    - Removed `static const` keyword from `segdist_code` structure declaration.

 drivers/slimbus/stream.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/slimbus/stream.c b/drivers/slimbus/stream.c
index 1d6b38657917..863ab3075d7e 100644
--- a/drivers/slimbus/stream.c
+++ b/drivers/slimbus/stream.c
@@ -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},
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] slimbus: Fix struct and documentation alignment in stream.c
  2024-06-16 20:32 [PATCH v2] slimbus: Fix struct and documentation alignment in stream.c Amit Vadhavana
@ 2024-06-17 17:11 ` Ricardo B. Marliere
       [not found]   ` <CAPMW_r+sPGF5=+=edLY81X+Cd4bMWKFJw3sDd0mzaZEM9b75BQ@mail.gmail.com>
  2024-07-03 17:32 ` Srinivas Kandagatla
  1 sibling, 1 reply; 5+ messages in thread
From: Ricardo B. Marliere @ 2024-06-17 17:11 UTC (permalink / raw)
  To: Amit Vadhavana
  Cc: srinivas.kandagatla, alsa-devel, linux-kernel, rbmarliere, skhan,
	linux-kernel-mentees

On 17 Jun 24 02:02, Amit Vadhavana wrote:
> 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'
> 
> Signed-off-by: Amit Vadhavana <av2082000@gmail.com>
> ---
> Changes in v2:
>     - Removed `static const` keyword from `segdist_code` structure declaration.
> 
>  drivers/slimbus/stream.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/slimbus/stream.c b/drivers/slimbus/stream.c
> index 1d6b38657917..863ab3075d7e 100644
> --- a/drivers/slimbus/stream.c
> +++ b/drivers/slimbus/stream.c
> @@ -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. */
      ^ isn't a '@' character missing here?

Make sure to re-build the docs and see whether it looks fine.

Thanks,
-	Ricardo.



> +static const struct segdist_code segdist_codes[] = {
>  	{1,	1536,	0x200,	 0xdff},
>  	{2,	768,	0x100,	 0xcff},
>  	{4,	384,	0x080,	 0xc7f},
> -- 
> 2.25.1
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] slimbus: Fix struct and documentation alignment in stream.c
       [not found]   ` <CAPMW_r+sPGF5=+=edLY81X+Cd4bMWKFJw3sDd0mzaZEM9b75BQ@mail.gmail.com>
@ 2024-06-20 12:30     ` Ricardo B. Marliere
  2024-07-03 17:23       ` Amit Vadhavana
  0 siblings, 1 reply; 5+ messages in thread
From: Ricardo B. Marliere @ 2024-06-20 12:30 UTC (permalink / raw)
  To: Amit Vadhavana
  Cc: srinivas.kandagatla, alsa-devel, linux-kernel, rbmarliere, skhan,
	linux-kernel-mentees

Hi Amit,

On 19 Jun 24 23:28, Amit Vadhavana wrote:
> Hi Ricardo,
> 
> I have rebuilt it again, and there are no any warnings or errors.

Thanks for checking, FWIW:

Reviewed-by: Ricardo B. Marliere <ricardo@marliere.net>

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



> 
> Thanks
> Amit v

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] slimbus: Fix struct and documentation alignment in stream.c
  2024-06-20 12:30     ` Ricardo B. Marliere
@ 2024-07-03 17:23       ` Amit Vadhavana
  0 siblings, 0 replies; 5+ messages in thread
From: Amit Vadhavana @ 2024-07-03 17:23 UTC (permalink / raw)
  To: Ricardo B. Marliere
  Cc: srinivas.kandagatla, alsa-devel, linux-kernel, rbmarliere, skhan,
	linux-kernel-mentees

On Thu, 20 Jun 2024 at 18:00, Ricardo B. Marliere <ricardo@marliere.net> wrote:
>
> Hi Amit,
>
> On 19 Jun 24 23:28, Amit Vadhavana wrote:
> > Hi Ricardo,
> >
> > I have rebuilt it again, and there are no any warnings or errors.
>
> Thanks for checking, FWIW:
>
> Reviewed-by: Ricardo B. Marliere <ricardo@marliere.net>
>
> 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
>
>
>
> >
> > 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] slimbus: Fix struct and documentation alignment in stream.c
  2024-06-16 20:32 [PATCH v2] slimbus: Fix struct and documentation alignment in stream.c Amit Vadhavana
  2024-06-17 17:11 ` Ricardo B. Marliere
@ 2024-07-03 17:32 ` Srinivas Kandagatla
  1 sibling, 0 replies; 5+ messages in thread
From: Srinivas Kandagatla @ 2024-07-03 17:32 UTC (permalink / raw)
  To: alsa-devel, linux-kernel, rbmarliere, skhan, Amit Vadhavana
  Cc: linux-kernel-mentees


On Mon, 17 Jun 2024 02:02:31 +0530, Amit Vadhavana wrote:
> 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.
> 
> [...]

Applied, thanks!

[1/1] slimbus: Fix struct and documentation alignment in stream.c
      commit: cea500f1ad5f6e93e67ab6f9a317d713524732cd

Best regards,
-- 
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-07-03 17:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-16 20:32 [PATCH v2] slimbus: Fix struct and documentation alignment in stream.c Amit Vadhavana
2024-06-17 17:11 ` Ricardo B. Marliere
     [not found]   ` <CAPMW_r+sPGF5=+=edLY81X+Cd4bMWKFJw3sDd0mzaZEM9b75BQ@mail.gmail.com>
2024-06-20 12:30     ` Ricardo B. Marliere
2024-07-03 17:23       ` Amit Vadhavana
2024-07-03 17:32 ` Srinivas Kandagatla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox