public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] staging: rtl8723bs: coding style fixes
@ 2026-01-12 10:46 Nayana Mariyappa
  2026-01-12 10:46 ` [PATCH v4 1/4] staging: rtl8723bs: fix block comment style Nayana Mariyappa
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Nayana Mariyappa @ 2026-01-12 10:46 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel, linux-staging, Nayana Mariyappa

This is a series of 4 small coding style fixes for rtl8723bs. Each patch is
self-contained and focuses on a single logical change, as requested.

Changes since v1:
- Split the original patch into 4 separate patches.
- Each patch now fixes one coding style issue.
- The previous patch fixing the non-kernel-doc comment has been merged
  into this v4 series; the separate patch is now retired.

Patches in this series:

1/4 staging: rtl8723bs: fix block comment style
2/4 staging: rtl8723bs: remove extra blank lines
3/4 staging: rtl8723bs: add blank lines after declarations
4/4 staging: rtl8723bs: expand multiple assignment into separate statements

Signed-off-by: Nayana Mariyappa <nayana.mariyappa@gmail.com>

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

* [PATCH v4 1/4] staging: rtl8723bs: fix block comment style
  2026-01-12 10:46 [PATCH v4 0/4] staging: rtl8723bs: coding style fixes Nayana Mariyappa
@ 2026-01-12 10:46 ` Nayana Mariyappa
  2026-01-12 10:57   ` Greg KH
  2026-01-12 10:46 ` [PATCH v4 2/4] staging: rtl8723bs: remove extra blank lines Nayana Mariyappa
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 8+ messages in thread
From: Nayana Mariyappa @ 2026-01-12 10:46 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel, linux-staging, Nayana Mariyappa

Fixed multi-line block comments in osdep_service.c to follow kernel
coding style. Fixing the non-kernel-doc comment has been merged into this
patch.
No functional change.

Signed-off-by: Nayana Mariyappa <nayana.mariyappa@gmail.com>
---
 drivers/staging/rtl8723bs/os_dep/osdep_service.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/osdep_service.c b/drivers/staging/rtl8723bs/os_dep/osdep_service.c
index a00f9f0c85c5..9d676a61981c 100644
--- a/drivers/staging/rtl8723bs/os_dep/osdep_service.c
+++ b/drivers/staging/rtl8723bs/os_dep/osdep_service.c
@@ -7,9 +7,9 @@
 #include <drv_types.h>
 
 /*
-* Translate the OS dependent @param error_code to OS independent RTW_STATUS_CODE
-* @return: one of RTW_STATUS_CODE
-*/
+ * Translate the OS dependent @param error_code to OS independent RTW_STATUS_CODE
+ * @return: one of RTW_STATUS_CODE
+ */
 inline int RTW_STATUS_CODE(int error_code)
 {
 	if (error_code >= 0)
-- 
2.43.0


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

* [PATCH v4 2/4] staging: rtl8723bs: remove extra blank lines
  2026-01-12 10:46 [PATCH v4 0/4] staging: rtl8723bs: coding style fixes Nayana Mariyappa
  2026-01-12 10:46 ` [PATCH v4 1/4] staging: rtl8723bs: fix block comment style Nayana Mariyappa
@ 2026-01-12 10:46 ` Nayana Mariyappa
  2026-01-12 10:46 ` [PATCH v4 3/4] staging: rtl8723bs: add blank lines after declarations Nayana Mariyappa
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Nayana Mariyappa @ 2026-01-12 10:46 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel, linux-staging, Nayana Mariyappa

Removed unnecessary blank lines in osdep_service.c and related files
to follow kernel coding style.
No functional change.

Signed-off-by: Nayana Mariyappa <nayana.mariyappa@gmail.com>
---
 drivers/staging/rtl8723bs/os_dep/osdep_service.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/osdep_service.c b/drivers/staging/rtl8723bs/os_dep/osdep_service.c
index 9d676a61981c..0f767d3e8c80 100644
--- a/drivers/staging/rtl8723bs/os_dep/osdep_service.c
+++ b/drivers/staging/rtl8723bs/os_dep/osdep_service.c
@@ -152,7 +152,6 @@ void rtw_buf_update(u8 **buf, u32 *buf_len, u8 *src, u32 src_len)
 		kfree(ori);
 }
 
-
 /**
  * rtw_cbuf_full - test if cbuf is full
  * @cbuf: pointer of struct rtw_cbuf
-- 
2.43.0


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

* [PATCH v4 3/4] staging: rtl8723bs: add blank lines after declarations
  2026-01-12 10:46 [PATCH v4 0/4] staging: rtl8723bs: coding style fixes Nayana Mariyappa
  2026-01-12 10:46 ` [PATCH v4 1/4] staging: rtl8723bs: fix block comment style Nayana Mariyappa
  2026-01-12 10:46 ` [PATCH v4 2/4] staging: rtl8723bs: remove extra blank lines Nayana Mariyappa
@ 2026-01-12 10:46 ` Nayana Mariyappa
  2026-01-12 10:46 ` [PATCH v4 4/4] staging: rtl8723bs: expand multiple assignment into separate statements Nayana Mariyappa
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Nayana Mariyappa @ 2026-01-12 10:46 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel, linux-staging, Nayana Mariyappa

Added blank lines after variable declarations in osdep_service.c and related
files to improve readability and follow kernel coding style.
No functional change.

Signed-off-by: Nayana Mariyappa <nayana.mariyappa@gmail.com>
---
 drivers/staging/rtl8723bs/os_dep/osdep_service.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/rtl8723bs/os_dep/osdep_service.c b/drivers/staging/rtl8723bs/os_dep/osdep_service.c
index 0f767d3e8c80..163129e1d44e 100644
--- a/drivers/staging/rtl8723bs/os_dep/osdep_service.c
+++ b/drivers/staging/rtl8723bs/os_dep/osdep_service.c
@@ -203,6 +203,7 @@ bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf)
 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf)
 {
 	void *buf;
+
 	if (rtw_cbuf_empty(cbuf))
 		return NULL;
 
-- 
2.43.0


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

* [PATCH v4 4/4] staging: rtl8723bs: expand multiple assignment into separate statements
  2026-01-12 10:46 [PATCH v4 0/4] staging: rtl8723bs: coding style fixes Nayana Mariyappa
                   ` (2 preceding siblings ...)
  2026-01-12 10:46 ` [PATCH v4 3/4] staging: rtl8723bs: add blank lines after declarations Nayana Mariyappa
@ 2026-01-12 10:46 ` Nayana Mariyappa
  2026-01-12 10:56 ` [PATCH v4 0/4] staging: rtl8723bs: coding style fixes Greg KH
  2026-01-12 11:37 ` Dan Carpenter
  5 siblings, 0 replies; 8+ messages in thread
From: Nayana Mariyappa @ 2026-01-12 10:46 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel, linux-staging, Nayana Mariyappa

Split multiple assignments in a single line into separate statements in
osdep_service.c to follow kernel coding style.
No functional change.

Signed-off-by: Nayana Mariyappa <nayana.mariyappa@gmail.com>
---
 drivers/staging/rtl8723bs/os_dep/osdep_service.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/osdep_service.c b/drivers/staging/rtl8723bs/os_dep/osdep_service.c
index 163129e1d44e..95b1d4e8e0f3 100644
--- a/drivers/staging/rtl8723bs/os_dep/osdep_service.c
+++ b/drivers/staging/rtl8723bs/os_dep/osdep_service.c
@@ -226,7 +226,8 @@ struct rtw_cbuf *rtw_cbuf_alloc(u32 size)
 	cbuf = rtw_malloc(struct_size(cbuf, bufs, size));
 
 	if (cbuf) {
-		cbuf->write = cbuf->read = 0;
+		cbuf->write = 0;
+		cbuf->read = 0;
 		cbuf->size = size;
 	}
 
-- 
2.43.0


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

* Re: [PATCH v4 0/4] staging: rtl8723bs: coding style fixes
  2026-01-12 10:46 [PATCH v4 0/4] staging: rtl8723bs: coding style fixes Nayana Mariyappa
                   ` (3 preceding siblings ...)
  2026-01-12 10:46 ` [PATCH v4 4/4] staging: rtl8723bs: expand multiple assignment into separate statements Nayana Mariyappa
@ 2026-01-12 10:56 ` Greg KH
  2026-01-12 11:37 ` Dan Carpenter
  5 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2026-01-12 10:56 UTC (permalink / raw)
  To: Nayana Mariyappa; +Cc: linux-kernel, linux-staging

On Mon, Jan 12, 2026 at 10:46:50AM +0000, Nayana Mariyappa wrote:
> This is a series of 4 small coding style fixes for rtl8723bs. Each patch is
> self-contained and focuses on a single logical change, as requested.
> 
> Changes since v1:
> - Split the original patch into 4 separate patches.
> - Each patch now fixes one coding style issue.
> - The previous patch fixing the non-kernel-doc comment has been merged
>   into this v4 series; the separate patch is now retired.

But this is v4, what happened between 1-2, and 2-3, and then 3-4?

Also, please slow down, take some time, relax, and redo a v5 tomorrow.
There's no rush here.  Take the time to get this right.

thanks,

greg k-h

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

* Re: [PATCH v4 1/4] staging: rtl8723bs: fix block comment style
  2026-01-12 10:46 ` [PATCH v4 1/4] staging: rtl8723bs: fix block comment style Nayana Mariyappa
@ 2026-01-12 10:57   ` Greg KH
  0 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2026-01-12 10:57 UTC (permalink / raw)
  To: Nayana Mariyappa; +Cc: linux-kernel, linux-staging

On Mon, Jan 12, 2026 at 10:46:51AM +0000, Nayana Mariyappa wrote:
> Fixed multi-line block comments in osdep_service.c to follow kernel
> coding style. Fixing the non-kernel-doc comment has been merged into this
> patch.
> No functional change.
> 
> Signed-off-by: Nayana Mariyappa <nayana.mariyappa@gmail.com>
> ---
>  drivers/staging/rtl8723bs/os_dep/osdep_service.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/os_dep/osdep_service.c b/drivers/staging/rtl8723bs/os_dep/osdep_service.c
> index a00f9f0c85c5..9d676a61981c 100644
> --- a/drivers/staging/rtl8723bs/os_dep/osdep_service.c
> +++ b/drivers/staging/rtl8723bs/os_dep/osdep_service.c
> @@ -7,9 +7,9 @@
>  #include <drv_types.h>
>  
>  /*
> -* Translate the OS dependent @param error_code to OS independent RTW_STATUS_CODE
> -* @return: one of RTW_STATUS_CODE
> -*/
> + * Translate the OS dependent @param error_code to OS independent RTW_STATUS_CODE
> + * @return: one of RTW_STATUS_CODE
> + */
>  inline int RTW_STATUS_CODE(int error_code)
>  {
>  	if (error_code >= 0)
> -- 
> 2.43.0
> 

You seem to have ignored my review comment where I asked this just to be
one line.  No need to have the @return: stuff, right?

thanks,

greg k-h

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

* Re: [PATCH v4 0/4] staging: rtl8723bs: coding style fixes
  2026-01-12 10:46 [PATCH v4 0/4] staging: rtl8723bs: coding style fixes Nayana Mariyappa
                   ` (4 preceding siblings ...)
  2026-01-12 10:56 ` [PATCH v4 0/4] staging: rtl8723bs: coding style fixes Greg KH
@ 2026-01-12 11:37 ` Dan Carpenter
  5 siblings, 0 replies; 8+ messages in thread
From: Dan Carpenter @ 2026-01-12 11:37 UTC (permalink / raw)
  To: Nayana Mariyappa; +Cc: gregkh, linux-kernel, linux-staging

Please wait for a day between resends.  Potentially other people
will want to give feedback on a patch if we give them time.

regards,
dan carpenter


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

end of thread, other threads:[~2026-01-12 11:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-12 10:46 [PATCH v4 0/4] staging: rtl8723bs: coding style fixes Nayana Mariyappa
2026-01-12 10:46 ` [PATCH v4 1/4] staging: rtl8723bs: fix block comment style Nayana Mariyappa
2026-01-12 10:57   ` Greg KH
2026-01-12 10:46 ` [PATCH v4 2/4] staging: rtl8723bs: remove extra blank lines Nayana Mariyappa
2026-01-12 10:46 ` [PATCH v4 3/4] staging: rtl8723bs: add blank lines after declarations Nayana Mariyappa
2026-01-12 10:46 ` [PATCH v4 4/4] staging: rtl8723bs: expand multiple assignment into separate statements Nayana Mariyappa
2026-01-12 10:56 ` [PATCH v4 0/4] staging: rtl8723bs: coding style fixes Greg KH
2026-01-12 11:37 ` Dan Carpenter

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