staging: rtl8723bs: Clean up coding style in include headers
v2 cover staging: rtl8723bs: Clean up coding style in include headers
This series fixes two separate checkpatch.pl warnings in the rtl8723bs include headers, split into one patch per logical change:
1. Remove superfluous consecutive blank lines from six header files.
2. Remove the redundant extern keyword from function prototype declarations in cmd_osdep.h and fix extra whitespace in struct parameter types.
v2: Split into one patch per logical change as requested by Nikolay
Kulikov. Added cover letter. Previous combined patch was sent as "[PATCH 2/2] staging: rtl8723bs: Fix coding style in include headers".
Pramod Maurya (2):
staging: rtl8723bs: Remove multiple blank lines in include headers
staging: rtl8723bs: Remove extern from function prototypes in
cmd_osdep.h
drivers/staging/rtl8723bs/include/cmd_osdep.h | 9 ++++----- 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, 4 insertions(+), 10 deletions(-)
Signature · 1 line
2.52.0
PATCH v2 1/2 staging: rtl8723bs: Remove multiple blank lines in include headers
Remove superfluous consecutive blank lines from rtl8723bs include header files as flagged by checkpatch.pl.
--- drivers/staging/rtl8723bs/include/cmd_osdep.h | 1 - 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, 6 deletions(-)
drivers/staging/rtl8723bs/include/cmd_osdep.h +0 -1
@@ -7,7 +7,6 @@#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);
drivers/staging/rtl8723bs/include/rtl8192c_recv.h +0 -1
@@ -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);
drivers/staging/rtl8723bs/include/rtl8723b_dm.h +0 -1
@@ -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
drivers/staging/rtl8723bs/include/rtw_ioctl_set.h +0 -1
@@ -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);
drivers/staging/rtl8723bs/include/rtw_wifi_regd.h +0 -1
@@ -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
drivers/staging/rtl8723bs/include/sdio_ops_linux.h +0 -1
@@ -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
Signature · 1 line
2.52.0
PATCH v2 2/2 staging: rtl8723bs: Remove extern from function prototypes in cmd_osdep.h
In reply to Pramod MauryaThe extern keyword is redundant on function declarations in header files. Remove it from all prototypes in cmd_osdep.h and fix extra whitespace in the struct parameter types while at it.
--- drivers/staging/rtl8723bs/include/cmd_osdep.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/rtl8723bs/include/cmd_osdep.h +4 -4
@@ -7,11 +7,11 @@#ifndef __CMD_OSDEP_H_#define __CMD_OSDEP_H_ -int rtw_init_cmd_priv (struct cmd_priv *pcmdpriv); +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
Signature · 1 line
2.52.0
Greg KH
maintainerRe: [PATCH v2 2/2] staging: rtl8723bs: Remove extern from function prototypes in cmd_osdep.h
Quoted 14 lines · Pramod Maurya
The extern keyword is redundant on function declarations in header files. Remove it from all prototypes in
cmd_osdep.hand fix extra whitespace in the struct parameter types while at it.Signed-off-by Pramod Maurya <[email protected]>--- drivers/staging/rtl8723bs/include/cmd_osdep.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/staging/rtl8723bs/include/cmd_osdep.h +0
-0
drivers/staging/rtl8723bs/include/cmd_osdep.h line 10
Quoted 5 lines
drivers/staging/rtl8723bs/include/cmd_osdep.h +1
-1@@ -7,11 +7,11 @@#ifndef __CMD_OSDEP_H_#define __CMD_OSDEP_H_ -int rtw_init_cmd_priv (struct cmd_priv *pcmdpriv); +int rtw_init_cmd_priv (struct cmd_priv *pcmdpriv);
This is not an extern change :(
Quoted 17 lines · Pramod Maurya
This series fixes two separate checkpatch.pl warnings in the rtl8723bs include headers, split into one patch per logical change:
1. Remove superfluous consecutive blank lines from six header files.
2. Remove the redundant extern keyword from function prototype declarations incmd_osdep.hand fix extra whitespace in struct parameter types.v2: Split into one patch per logical change as requested by Nikolay
Kulikov. Added cover letter. Previous combined patch was sent as "[PATCH 2/2] staging: rtl8723bs: Fix coding style in include headers".Pramod Maurya (2):
staging: rtl8723bs: Remove multiple blank lines in include headers
staging: rtl8723bs: Remove extern from function prototypes in
cmd_osdep.h
Quoted 11 lines
drivers/staging/rtl8723bs/include/cmd_osdep.h | 9 ++++----- 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, 4 insertions(+), 10 deletions(-)Signature · 1 line
2.52.0
Looks good to me.
Thanks,
Nikolay