Re: [PATCH 2/2] staging: rtl8723bs: Fix coding style in include headers
From: Nikolay Kulikov
Date: Sun May 10 2026 - 13:02:00 EST
On Sun, May 10, 2026 at 11:17:21AM -0400, Pramod Maurya wrote:
> Remove multiple blank lines and extern keywords from function
> prototypes in header files as flagged by checkpatch.pl.
Please one patch for one logical change.
>
> Files changed:
> - rtw_wifi_regd.h: remove multiple blank lines
> - sdio_ops_linux.h: remove multiple blank lines
> - cmd_osdep.h: remove multiple blank lines and extern prototypes
> - rtw_ioctl_set.h: remove multiple blank lines
> - rtl8192c_recv.h: remove multiple blank lines
> - rtl8723b_dm.h: remove multiple blank lines
git diff does this for you perfectly well, why repeat it?
Thanks,
Nikolay
>
> Signed-off-by: Pramod Maurya <pramod.nexgen@xxxxxxxxx>
> ---
> drivers/staging/rtl8723bs/include/cmd_osdep.h | 7 +++----
> drivers/staging/rtl8723bs/include/rtl8192c_recv.h | 1 -
> drivers/staging/rtl8723bs/include/rtl8723b_dm.h | 1 -
> drivers/staging/rtl8723bs/include/rtw_ioctl_set.h | 1 -
> drivers/staging/rtl8723bs/include/rtw_wifi_regd.h | 1 -
> drivers/staging/rtl8723bs/include/sdio_ops_linux.h | 1 -
> 6 files changed, 3 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/include/cmd_osdep.h b/drivers/staging/rtl8723bs/include/cmd_osdep.h
> index 5506f513dc01..7aaee3b480ba 100644
> --- a/drivers/staging/rtl8723bs/include/cmd_osdep.h
> +++ b/drivers/staging/rtl8723bs/include/cmd_osdep.h
> @@ -7,12 +7,11 @@
> #ifndef __CMD_OSDEP_H_
> #define __CMD_OSDEP_H_
>
> -
> int rtw_init_cmd_priv(struct cmd_priv *pcmdpriv);
> int rtw_init_evt_priv(struct evt_priv *pevtpriv);
> -extern void _rtw_free_evt_priv(struct evt_priv *pevtpriv);
> -extern void _rtw_free_cmd_priv(struct cmd_priv *pcmdpriv);
> +void _rtw_free_evt_priv(struct evt_priv *pevtpriv);
> +void _rtw_free_cmd_priv(struct cmd_priv *pcmdpriv);
> int _rtw_enqueue_cmd(struct __queue *queue, struct cmd_obj *obj);
> -extern struct cmd_obj *_rtw_dequeue_cmd(struct __queue *queue);
> +struct cmd_obj *_rtw_dequeue_cmd(struct __queue *queue);
>
> #endif
> diff --git a/drivers/staging/rtl8723bs/include/rtl8192c_recv.h b/drivers/staging/rtl8723bs/include/rtl8192c_recv.h
> index e2e9aa03ffdf..1f86654f0403 100644
> --- a/drivers/staging/rtl8723bs/include/rtl8192c_recv.h
> +++ b/drivers/staging/rtl8723bs/include/rtl8192c_recv.h
> @@ -30,7 +30,6 @@ struct phy_stat {
> /* Rx smooth factor */
> #define Rx_Smooth_Factor (20)
>
> -
> void rtl8192c_translate_rx_signal_stuff(union recv_frame *precvframe, struct phy_stat *pphy_status);
> void rtl8192c_query_rx_desc_status(union recv_frame *precvframe, struct recv_stat *pdesc);
>
> diff --git a/drivers/staging/rtl8723bs/include/rtl8723b_dm.h b/drivers/staging/rtl8723bs/include/rtl8723b_dm.h
> index 1d2da5286e7c..50ab7aed079e 100644
> --- a/drivers/staging/rtl8723bs/include/rtl8723b_dm.h
> +++ b/drivers/staging/rtl8723bs/include/rtl8723b_dm.h
> @@ -29,5 +29,4 @@ void rtl8723b_HalDmWatchDog(struct adapter *padapter);
> void rtl8723b_HalDmWatchDog_in_LPS(struct adapter *padapter);
> void rtl8723b_hal_dm_in_lps(struct adapter *padapter);
>
> -
> #endif
> diff --git a/drivers/staging/rtl8723bs/include/rtw_ioctl_set.h b/drivers/staging/rtl8723bs/include/rtw_ioctl_set.h
> index ab349de733c8..c3a1d1a84f78 100644
> --- a/drivers/staging/rtl8723bs/include/rtw_ioctl_set.h
> +++ b/drivers/staging/rtl8723bs/include/rtw_ioctl_set.h
> @@ -7,7 +7,6 @@
> #ifndef __RTW_IOCTL_SET_H_
> #define __RTW_IOCTL_SET_H_
>
> -
> typedef u8 NDIS_802_11_PMKID_VALUE[16];
>
> u8 rtw_set_802_11_authentication_mode(struct adapter *pdapter, enum ndis_802_11_authentication_mode authmode);
> diff --git a/drivers/staging/rtl8723bs/include/rtw_wifi_regd.h b/drivers/staging/rtl8723bs/include/rtw_wifi_regd.h
> index e611651cb40b..e4d8fe9bf68d 100644
> --- a/drivers/staging/rtl8723bs/include/rtw_wifi_regd.h
> +++ b/drivers/staging/rtl8723bs/include/rtw_wifi_regd.h
> @@ -13,5 +13,4 @@ void rtw_regd_init(struct wiphy *wiphy,
> struct regulatory_request *request));
> void rtw_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request);
>
> -
> #endif
> diff --git a/drivers/staging/rtl8723bs/include/sdio_ops_linux.h b/drivers/staging/rtl8723bs/include/sdio_ops_linux.h
> index 18830dd18372..cd67a7201065 100644
> --- a/drivers/staging/rtl8723bs/include/sdio_ops_linux.h
> +++ b/drivers/staging/rtl8723bs/include/sdio_ops_linux.h
> @@ -25,6 +25,5 @@ void sd_write32(struct intf_hdl *pintfhdl, u32 addr, u32 v, s32 *err);
> s32 _sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata);
> s32 sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata);
>
> -
> void rtw_sdio_set_irq_thd(struct dvobj_priv *dvobj, void *thd_hdl);
> #endif
> --
> 2.52.0
>