* [PATCH v2 0/4] staging: rtl8723bs: fix remaining checkpatch.pl
@ 2026-01-18 11:54 Mahad Ibrahim
2026-01-18 11:54 ` [PATCH v2 1/4] staging: rtl8723bs: fix open parenthesis alignment Mahad Ibrahim
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Mahad Ibrahim @ 2026-01-18 11:54 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, linux-kernel, Mahad Ibrahim
This series addresses the style issues that were rejected in the
previous v1 series (Patch 3/10 and Patch 6/10). The other 8 patches have
been accepted into staging-next.
In this v2 series I have restructured fixes to apply one logical change
per patch across multiple files instead of grouping by file, as suggested
by Greg KH.
Changes in v2:
- Fix open parenthesis alignment.
- Remove multiple blank lines.
- Add missing blank line after declaration.
- Fix line length issues by redistributing comments.
Files touched:
- HalHWImg8723B_BB.c
- HalHWImg8723B_MAC.c
Mahad Ibrahim (4):
staging: rtl8723bs: fix open parenthesis alignment
staging: rtl8723bs: fix multiple blank line check
staging: rtl8723bs: fix missing blank line after declaration
staging: rtl8723bs: fix line length check
drivers/staging/rtl8723bs/hal/HalHWImg8723B_BB.c | 5 +----
drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c | 14 ++++++++------
2 files changed, 9 insertions(+), 10 deletions(-)
--
2.47.3
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 1/4] staging: rtl8723bs: fix open parenthesis alignment
2026-01-18 11:54 [PATCH v2 0/4] staging: rtl8723bs: fix remaining checkpatch.pl Mahad Ibrahim
@ 2026-01-18 11:54 ` Mahad Ibrahim
2026-01-18 11:54 ` [PATCH v2 2/4] staging: rtl8723bs: fix multiple blank line check Mahad Ibrahim
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Mahad Ibrahim @ 2026-01-18 11:54 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, linux-kernel, Mahad Ibrahim
Fix checkpatch.pl check regarding:
- Lines should not end with a '('
Collapse the multi-line function signature of CheckPositive() into a
single line to adhere to kernel coding standards.
Signed-off-by: Mahad Ibrahim <mahad.ibrahim.dev@gmail.com>
---
drivers/staging/rtl8723bs/hal/HalHWImg8723B_BB.c | 4 +---
drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c | 4 +---
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/HalHWImg8723B_BB.c b/drivers/staging/rtl8723bs/hal/HalHWImg8723B_BB.c
index 5fcb9420fb3d..ab5af96c335f 100644
--- a/drivers/staging/rtl8723bs/hal/HalHWImg8723B_BB.c
+++ b/drivers/staging/rtl8723bs/hal/HalHWImg8723B_BB.c
@@ -8,9 +8,7 @@
#include <linux/kernel.h>
#include "odm_precomp.h"
-static bool CheckPositive(
- struct dm_odm_t *pDM_Odm, const u32 Condition1, const u32 Condition2
-)
+static bool CheckPositive(struct dm_odm_t *pDM_Odm, const u32 Condition1, const u32 Condition2)
{
u8 _BoardType =
((pDM_Odm->BoardType & BIT4) >> 4) << 0 | /* _GLNA */
diff --git a/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c b/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c
index 9c07df254eaa..ac5e3d52b3bc 100644
--- a/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c
+++ b/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c
@@ -8,9 +8,7 @@
#include <linux/kernel.h>
#include "odm_precomp.h"
-static bool CheckPositive(
- struct dm_odm_t *pDM_Odm, const u32 Condition1, const u32 Condition2
-)
+static bool CheckPositive(struct dm_odm_t *pDM_Odm, const u32 Condition1, const u32 Condition2)
{
u8 _BoardType =
((pDM_Odm->BoardType & BIT4) >> 4) << 0 | /* _GLNA */
--
2.47.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 2/4] staging: rtl8723bs: fix multiple blank line check
2026-01-18 11:54 [PATCH v2 0/4] staging: rtl8723bs: fix remaining checkpatch.pl Mahad Ibrahim
2026-01-18 11:54 ` [PATCH v2 1/4] staging: rtl8723bs: fix open parenthesis alignment Mahad Ibrahim
@ 2026-01-18 11:54 ` Mahad Ibrahim
2026-01-18 11:54 ` [PATCH v2 3/4] staging: rtl8723bs: fix missing blank line after declaration Mahad Ibrahim
2026-01-18 11:54 ` [PATCH v2 4/4] staging: rtl8723bs: fix line length check Mahad Ibrahim
3 siblings, 0 replies; 7+ messages in thread
From: Mahad Ibrahim @ 2026-01-18 11:54 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, linux-kernel, Mahad Ibrahim
Fix checkpatch.pl check regarding:
- Please don't use multiple blank lines
Remove multiple blank lines to adhere to kernel coding standards.
Signed-off-by: Mahad Ibrahim <mahad.ibrahim.dev@gmail.com>
---
drivers/staging/rtl8723bs/hal/HalHWImg8723B_BB.c | 1 -
drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/HalHWImg8723B_BB.c b/drivers/staging/rtl8723bs/hal/HalHWImg8723B_BB.c
index ab5af96c335f..988636a16112 100644
--- a/drivers/staging/rtl8723bs/hal/HalHWImg8723B_BB.c
+++ b/drivers/staging/rtl8723bs/hal/HalHWImg8723B_BB.c
@@ -31,7 +31,6 @@ static bool CheckPositive(struct dm_odm_t *pDM_Odm, const u32 Condition1, const
pDM_Odm->TypeALNA << 16 |
pDM_Odm->TypeAPA << 24;
-
/* Value Defined Check =============== */
/* QFN Type [15:12] and Cut Version [27:24] need to do value check */
diff --git a/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c b/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c
index ac5e3d52b3bc..1fbb71149cc7 100644
--- a/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c
+++ b/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c
@@ -31,7 +31,6 @@ static bool CheckPositive(struct dm_odm_t *pDM_Odm, const u32 Condition1, const
pDM_Odm->TypeALNA << 16 |
pDM_Odm->TypeAPA << 24;
-
/* Value Defined Check =============== */
/* QFN Type [15:12] and Cut Version [27:24] need to do value check */
--
2.47.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 3/4] staging: rtl8723bs: fix missing blank line after declaration
2026-01-18 11:54 [PATCH v2 0/4] staging: rtl8723bs: fix remaining checkpatch.pl Mahad Ibrahim
2026-01-18 11:54 ` [PATCH v2 1/4] staging: rtl8723bs: fix open parenthesis alignment Mahad Ibrahim
2026-01-18 11:54 ` [PATCH v2 2/4] staging: rtl8723bs: fix multiple blank line check Mahad Ibrahim
@ 2026-01-18 11:54 ` Mahad Ibrahim
2026-01-18 11:54 ` [PATCH v2 4/4] staging: rtl8723bs: fix line length check Mahad Ibrahim
3 siblings, 0 replies; 7+ messages in thread
From: Mahad Ibrahim @ 2026-01-18 11:54 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, linux-kernel, Mahad Ibrahim
Fix checkpatch.pl warning regarding:
- Missing a blank line after declarations
Adhere to kernel coding standards by adding a blank line after variable
declaration.
Signed-off-by: Mahad Ibrahim <mahad.ibrahim.dev@gmail.com>
---
drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c b/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c
index 1fbb71149cc7..b7176a992518 100644
--- a/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c
+++ b/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c
@@ -47,6 +47,7 @@ static bool CheckPositive(struct dm_odm_t *pDM_Odm, const u32 Condition1, const
if ((cond1 & driver1) == cond1) {
u32 bitMask = 0;
+
if ((cond1 & 0x0F) == 0) /* BoardType is DONTCARE */
return true;
--
2.47.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 4/4] staging: rtl8723bs: fix line length check
2026-01-18 11:54 [PATCH v2 0/4] staging: rtl8723bs: fix remaining checkpatch.pl Mahad Ibrahim
` (2 preceding siblings ...)
2026-01-18 11:54 ` [PATCH v2 3/4] staging: rtl8723bs: fix missing blank line after declaration Mahad Ibrahim
@ 2026-01-18 11:54 ` Mahad Ibrahim
2026-01-27 14:40 ` Greg KH
3 siblings, 1 reply; 7+ messages in thread
From: Mahad Ibrahim @ 2026-01-18 11:54 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, linux-kernel, Mahad Ibrahim
Fix checkpatch.pl check regarding:
- Line length of X exceeds 100 columns
Redistribute comments to multiple lines to adhere to kernel coding
standards.
Signed-off-by: Mahad Ibrahim <mahad.ibrahim.dev@gmail.com>
---
drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c b/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c
index b7176a992518..fb108492efac 100644
--- a/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c
+++ b/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c
@@ -60,7 +60,8 @@ static bool CheckPositive(struct dm_odm_t *pDM_Odm, const u32 Condition1, const
if ((cond1 & BIT3) != 0) /* APA */
bitMask |= 0xFF000000;
- if ((cond2 & bitMask) == (driver2 & bitMask)) /* BoardType of each RF path is matched */
+ /* BoardType of each RF path is matched */
+ if ((cond2 & bitMask) == (driver2 & bitMask))
return true;
}
return false;
@@ -210,7 +211,10 @@ void ODM_ReadAndConfig_MP_8723B_MAC_REG(struct dm_odm_t *pDM_Odm)
}
if (!bMatched) {
- /* Condition isn't matched. Discard the following (offset, data) pairs. */
+ /*
+ * Condition isn't matched.
+ * Discard the following (offset, data) pairs.
+ */
while (v1 < 0x40000000 && i < ArrayLen - 2)
READ_NEXT_PAIR(v1, v2, i);
--
2.47.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2 4/4] staging: rtl8723bs: fix line length check
2026-01-18 11:54 ` [PATCH v2 4/4] staging: rtl8723bs: fix line length check Mahad Ibrahim
@ 2026-01-27 14:40 ` Greg KH
2026-01-28 16:09 ` Mahad Ibrahim
0 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2026-01-27 14:40 UTC (permalink / raw)
To: Mahad Ibrahim; +Cc: linux-staging, linux-kernel
On Sun, Jan 18, 2026 at 04:54:45PM +0500, Mahad Ibrahim wrote:
> Fix checkpatch.pl check regarding:
> - Line length of X exceeds 100 columns
>
> Redistribute comments to multiple lines to adhere to kernel coding
> standards.
>
> Signed-off-by: Mahad Ibrahim <mahad.ibrahim.dev@gmail.com>
> ---
> drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c b/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c
> index b7176a992518..fb108492efac 100644
> --- a/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c
> +++ b/drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c
> @@ -60,7 +60,8 @@ static bool CheckPositive(struct dm_odm_t *pDM_Odm, const u32 Condition1, const
> if ((cond1 & BIT3) != 0) /* APA */
> bitMask |= 0xFF000000;
>
> - if ((cond2 & bitMask) == (driver2 & bitMask)) /* BoardType of each RF path is matched */
> + /* BoardType of each RF path is matched */
Why the extra space after /* and before BoardType?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 4/4] staging: rtl8723bs: fix line length check
2026-01-27 14:40 ` Greg KH
@ 2026-01-28 16:09 ` Mahad Ibrahim
0 siblings, 0 replies; 7+ messages in thread
From: Mahad Ibrahim @ 2026-01-28 16:09 UTC (permalink / raw)
To: Greg KH; +Cc: linux-staging, linux-kernel
On Tue Jan 27, 2026 at 7:40 PM PKT, Greg KH wrote:
>> - if ((cond2 & bitMask) == (driver2 & bitMask)) /* BoardType of each RF path is matched */
>> + /* BoardType of each RF path is matched */
>
> Why the extra space after /* and before BoardType?
>
> thanks,
>
> greg k-h
Thank you for the review.
I included it to match the existing comment style prevalent in this
specific file. Not adding it would have caused inconsistency.
However I realize this violates the kernel coding standards.
I will send a v3 series that addresses this issue, as well as fix the
line comment style in that file as a separate logical change.
thanks,
Mahad Ibrahim
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-01-28 16:09 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-18 11:54 [PATCH v2 0/4] staging: rtl8723bs: fix remaining checkpatch.pl Mahad Ibrahim
2026-01-18 11:54 ` [PATCH v2 1/4] staging: rtl8723bs: fix open parenthesis alignment Mahad Ibrahim
2026-01-18 11:54 ` [PATCH v2 2/4] staging: rtl8723bs: fix multiple blank line check Mahad Ibrahim
2026-01-18 11:54 ` [PATCH v2 3/4] staging: rtl8723bs: fix missing blank line after declaration Mahad Ibrahim
2026-01-18 11:54 ` [PATCH v2 4/4] staging: rtl8723bs: fix line length check Mahad Ibrahim
2026-01-27 14:40 ` Greg KH
2026-01-28 16:09 ` Mahad Ibrahim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox