staging: rtl8723bs: fix block comment formatting
PATCH v3 1/2 staging: rtl8723bs: fix block comment formatting
--- drivers/staging/rtl8723bs/core/rtw_cmd.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
drivers/staging/rtl8723bs/core/rtw_cmd.c +9 -2
@@ -1743,7 +1743,11 @@ u8 rtw_drvextra_cmd_hdl(struct adapter *padapter, unsigned char *pbuf) pdrvextra_cmd = (struct drvextra_cmd_parm *)pbuf;switch (pdrvextra_cmd->ec_id) { -case DYNAMIC_CHK_WK_CID :/* only primary padapter go to this cmd, but execute dynamic_chk_wk_hdl() for two interfaces */ +case DYNAMIC_CHK_WK_CID : +/* +* only primary padapter go to this cmd, but execute +* dynamic_chk_wk_hdl() for two interfaces +*/ dynamic_chk_wk_hdl (padapter);break ;case POWER_SAVING_CTRL_WK_CID :
@@ -1881,7 +1885,10 @@ void rtw_createbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd)_clr_fwstate_ (pmlmepriv, _FW_UNDER_LINKING);spin_unlock_bh (&pmlmepriv->scanned_queue.lock); -/* we will set _FW_LINKED when there is one more sat to join us (rtw_stassoc_event_callback) */ +/* +* we will set _FW_LINKED when there is one more sta +* to join us (rtw_stassoc_event_callback) +*/ } createbss_cmd_fail:
Signature · 1 line
2.53.0
PATCH v3 2/2 staging: rtl8723bs: resolve 100-column limit with intermediate pointer
--- drivers/staging/rtl8723bs/core/rtw_cmd.c | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-)
drivers/staging/rtl8723bs/core/rtw_cmd.c +13 -13
@@ -1105,25 +1105,25 @@ u8 rtw_dynamic_chk_wk_cmd(struct adapter *padapter)static void collect_traffic_statistics (struct adapter *padapter) {struct dvobj_priv *pdvobjpriv =adapter_to_dvobj (padapter); +struct rtw_traffic_statistics *stat = &pdvobjpriv->traffic_stat;/* Tx */ - pdvobjpriv->traffic_stat.tx_bytes = padapter->xmitpriv.tx_bytes; - pdvobjpriv->traffic_stat.tx_pkts = padapter->xmitpriv.tx_pkts; - pdvobjpriv->traffic_stat.tx_drop = padapter->xmitpriv.tx_drop; + stat->tx_bytes = padapter->xmitpriv.tx_bytes; + stat->tx_pkts = padapter->xmitpriv.tx_pkts; + stat->tx_drop = padapter->xmitpriv.tx_drop;/* Rx */ - pdvobjpriv->traffic_stat.rx_bytes = padapter->recvpriv.rx_bytes; - pdvobjpriv->traffic_stat.rx_pkts = padapter->recvpriv.rx_pkts; - pdvobjpriv->traffic_stat.rx_drop = padapter->recvpriv.rx_drop; + stat->rx_bytes = padapter->recvpriv.rx_bytes; + stat->rx_pkts = padapter->recvpriv.rx_pkts; + stat->rx_drop = padapter->recvpriv.rx_drop;/* Calculate throughput in last interval */ - pdvobjpriv->traffic_stat.cur_tx_bytes = pdvobjpriv->traffic_stat.tx_bytes - pdvobjpriv->traffic_stat.last_tx_bytes; - pdvobjpriv->traffic_stat.cur_rx_bytes = pdvobjpriv->traffic_stat.rx_bytes - pdvobjpriv->traffic_stat.last_rx_bytes; - pdvobjpriv->traffic_stat.last_tx_bytes = pdvobjpriv->traffic_stat.tx_bytes; - pdvobjpriv->traffic_stat.last_rx_bytes = pdvobjpriv->traffic_stat.rx_bytes; - - pdvobjpriv->traffic_stat.cur_tx_tp = (u32)(pdvobjpriv->traffic_stat.cur_tx_bytes *8 /2 /1024 /1024 ); - pdvobjpriv->traffic_stat.cur_rx_tp = (u32)(pdvobjpriv->traffic_stat.cur_rx_bytes *8 /2 /1024 /1024 ); + stat->cur_tx_bytes = stat->tx_bytes - stat->last_tx_bytes; + stat->cur_rx_bytes = stat->rx_bytes - stat->last_rx_bytes; + stat->last_tx_bytes = stat->tx_bytes; + stat->last_rx_bytes = stat->rx_bytes; + stat->cur_tx_tp = (u32)(stat->cur_tx_bytes *8 /2 /1024 /1024 ); + stat->cur_rx_tp = (u32)(stat->cur_rx_bytes *8 /2 /1024 /1024 ); }bool traffic_status_watchdog (struct adapter *padapter,bool from_timer)
Signature · 1 line
2.53.0
Greg KH
maintainerQuoted 36 lines · Noah Techoueyres
--- drivers/staging/rtl8723bs/core/rtw_cmd.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)drivers/staging/rtl8723bs/core/rtw_cmd.c +9
-2@@ -1743,7 +1743,11 @@ u8 rtw_drvextra_cmd_hdl(struct adapter *padapter, unsigned char *pbuf) pdrvextra_cmd = (struct drvextra_cmd_parm *)pbuf;switch (pdrvextra_cmd->ec_id) { -case DYNAMIC_CHK_WK_CID :/* only primary padapter go to this cmd, but execute dynamic_chk_wk_hdl() for two interfaces */ +case DYNAMIC_CHK_WK_CID : +/* +* only primary padapter go to this cmd, but execute +* dynamic_chk_wk_hdl() for two interfaces +*/ dynamic_chk_wk_hdl (padapter);break ;case POWER_SAVING_CTRL_WK_CID :@@ -1881,7 +1885,10 @@ void rtw_createbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd)_clr_fwstate_ (pmlmepriv, _FW_UNDER_LINKING);spin_unlock_bh (&pmlmepriv->scanned_queue.lock); -/* we will set _FW_LINKED when there is one more sat to join us (rtw_stassoc_event_callback) */ +/* +* we will set _FW_LINKED when there is one more sta +* to join us (rtw_stassoc_event_callback) +*/ } createbss_cmd_fail:Signature · 1 line
2.53.0
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree.
You are receiving this message because of the following common error(s) as indicated below:
- Your patch does not have a Signed-off-by: line. Please read the kernel file, Documentation/process/submitting-patches.rst and resend it after adding that line. Note, the line needs to be in the body of the email, before the patch, not at the bottom of the patch or in the email signature.
- This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/process/submitting-patches.rst for what needs to be done here to properly describe this.
If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers.
thanks,
greg k-h's patch email bot