From: Greg KH <gregkh@linuxfoundation.org>
To: Derek Robson <robsonde@gmail.com>
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 04/25] Staging: rtl8192u: r819xU_cmdpkt.c - style fix
Date: Sun, 12 Feb 2017 13:39:39 +0100 [thread overview]
Message-ID: <20170212123939.GA12038@kroah.com> (raw)
In-Reply-To: <e8619c69fada94cd4e5d821ef9c48049ee4c0782.1486804834.git.robsonde@gmail.com>
On Sat, Feb 11, 2017 at 10:53:33PM +1300, Derek Robson wrote:
> Fixed style of block comments
> Found using checkpatch
>
> Signed-off-by: Derek Robson <robsonde@gmail.com>
> ---
> drivers/staging/rtl8192u/r819xU_cmdpkt.c | 99 +++++++++++++++++++-------------
> 1 file changed, 60 insertions(+), 39 deletions(-)
>
> diff --git a/drivers/staging/rtl8192u/r819xU_cmdpkt.c b/drivers/staging/rtl8192u/r819xU_cmdpkt.c
> index 1168d133522e..671391a9cbf3 100644
> --- a/drivers/staging/rtl8192u/r819xU_cmdpkt.c
> +++ b/drivers/staging/rtl8192u/r819xU_cmdpkt.c
> @@ -34,7 +34,8 @@ rt_status SendTxCommandPacket(struct net_device *dev, void *pData, u32 DataLen)
> unsigned char *ptr_buf;
>
> /* Get TCB and local buffer from common pool.
> - (It is shared by CmdQ, MgntQ, and USB coalesce DataQ) */
> + * (It is shared by CmdQ, MgntQ, and USB coalesce DataQ)
> + */
> skb = dev_alloc_skb(USB_HWDESC_HEADER_LEN + DataLen + 4);
> if (!skb)
> return RT_STATUS_FAILURE;
> @@ -76,7 +77,8 @@ rt_status SendTxCommandPacket(struct net_device *dev, void *pData, u32 DataLen)
> * When Who Remark
> * 05/12/2008 amy Create Version 0 porting from windows code.
> *
> - *---------------------------------------------------------------------------*/
> + *---------------------------------------------------------------------------
> + */
> static void cmpk_count_txstatistic(struct net_device *dev, cmpk_txfb_t *pstx_fb)
> {
> struct r8192_priv *priv = ieee80211_priv(dev);
> @@ -87,8 +89,9 @@ static void cmpk_count_txstatistic(struct net_device *dev, cmpk_txfb_t *pstx_fb)
> (pu1Byte)(&rtState));
>
> /* When RF is off, we should not count the packet for hw/sw synchronize
> - reason, ie. there may be a duration while sw switch is changed and
> - hw switch is being changed. */
> + * reason, ie. there may be a duration while sw switch is changed and
> + * hw switch is being changed.
> + */
> if (rtState == eRfOff)
> return;
> #endif
> @@ -98,8 +101,9 @@ static void cmpk_count_txstatistic(struct net_device *dev, cmpk_txfb_t *pstx_fb)
> return;
> #endif
> /* We can not know the packet length and transmit type:
> - broadcast or uni or multicast. So the relative statistics
> - must be collected in tx feedback info. */
> + * broadcast or uni or multicast. So the relative statistics
> + * must be collected in tx feedback info.
> + */
> if (pstx_fb->tok) {
> priv->stats.txfeedbackok++;
> priv->stats.txoktotal++;
> @@ -155,7 +159,8 @@ static void cmpk_count_txstatistic(struct net_device *dev, cmpk_txfb_t *pstx_fb)
> * When Who Remark
> * 05/08/2008 amy Create Version 0 porting from windows code.
> *
> - *---------------------------------------------------------------------------*/
> + *---------------------------------------------------------------------------
> + */
> static void cmpk_handle_tx_feedback(struct net_device *dev, u8 *pmsg)
> {
> struct r8192_priv *priv = ieee80211_priv(dev);
> @@ -163,18 +168,19 @@ static void cmpk_handle_tx_feedback(struct net_device *dev, u8 *pmsg)
>
> priv->stats.txfeedback++;
>
> - /* 1. Extract TX feedback info from RFD to temp structure buffer. */
> - /* It seems that FW use big endian(MIPS) and DRV use little endian in
> - windows OS. So we have to read the content byte by byte or transfer
> - endian type before copy the message copy. */
> - /* Use pointer to transfer structure memory. */
> - memcpy((u8 *)&rx_tx_fb, pmsg, sizeof(cmpk_txfb_t));
> - /* 2. Use tx feedback info to count TX statistics. */
> - cmpk_count_txstatistic(dev, &rx_tx_fb);
> - /* Comment previous method for TX statistic function. */
> - /* Collect info TX feedback packet to fill TCB. */
> - /* We can not know the packet length and transmit type: broadcast or uni
> - or multicast. */
> + /* 1. Extract TX feedback info from RFD to temp structure buffer.
> + * It seems that FW use big endian(MIPS) and DRV use little endian in
> + * windows OS. So we have to read the content byte by byte or transfer
> + * endian type before copy the message copy.
> + * Use pointer to transfer structure memory.
> + * memcpy((u8 *)&rx_tx_fb, pmsg, sizeof(cmpk_txfb_t));
> + * 2. Use tx feedback info to count TX statistics.
> + * cmpk_count_txstatistic(dev, &rx_tx_fb);
> + * Comment previous method for TX statistic function.
> + * Collect info TX feedback packet to fill TCB.
> + * We can not know the packet length and transmit type: broadcast or uni
> + * or multicast.
> + */
> }
>
> static void cmdpkt_beacontimerinterrupt_819xusb(struct net_device *dev)
Ouch! This is not correct at all, luckily the compiler caught this
problem.
Please ALWAYS test your changes. I've stopped applying the series here,
please fix up and resend. And fix up the "just delete the unused
structures" issue as well.
thanks,
greg k-h
next prev parent reply other threads:[~2017-02-12 12:50 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-11 9:52 [PATCH 00/25] Staging: rtl8192u - fixed block comments Derek Robson
2017-02-11 9:52 ` [PATCH 01/25] Staging: rtl8192u: r819xU_phy.c - style fix Derek Robson
2017-02-11 9:52 ` [PATCH 02/25] Staging: rtl8192u: r819xU_firmware.c " Derek Robson
2017-02-11 9:53 ` [PATCH 03/25] Staging: rtl8192u: r819xU_cmdpkt.h " Derek Robson
2017-02-11 9:53 ` [PATCH 04/25] Staging: rtl8192u: r819xU_cmdpkt.c " Derek Robson
2017-02-12 12:39 ` Greg KH [this message]
2017-02-11 9:53 ` [PATCH 05/25] Staging: rtl8192u: r8192U_hw.h " Derek Robson
2017-02-11 9:54 ` [PATCH 06/25] Staging: rtl8192u: r8192U_dm.c " Derek Robson
2017-02-11 9:54 ` [PATCH 07/25] Staging: rtl8192u: r8192U_core.c " Derek Robson
2017-02-11 9:54 ` [PATCH 08/25] Staging: rtl8192u: r8192U.h " Derek Robson
2017-02-11 9:55 ` [PATCH 09/25] Staging: rtl8192u: r8190_rtl8256.h " Derek Robson
2017-02-11 9:55 ` [PATCH 10/25] Staging: rtl8192u: r8190_rtl8256.c " Derek Robson
2017-02-11 9:55 ` [PATCH 11/25] Staging: rtl8192u: r8180_93cx6.c " Derek Robson
2017-02-11 9:55 ` [PATCH 12/25] Staging: rtl8192u: ieee80211: ieee80211_crypt_wep.c " Derek Robson
2017-02-11 9:56 ` [PATCH 13/25] Staging: rtl8192u: ieee80211: rtl819x_TSProc.c " Derek Robson
2017-02-11 9:56 ` [PATCH 14/25] Staging: rtl8192u: ieee80211: ieee80211_softmac.c " Derek Robson
2017-02-11 9:56 ` [PATCH 15/25] Staging: rtl8192u: ieee80211: ieee80211_module.c " Derek Robson
2017-02-11 9:56 ` [PATCH 16/25] Staging: rtl8192u: ieee80211: rtl819x_HTProc.c " Derek Robson
2017-02-11 9:57 ` [PATCH 17/25] Staging: rtl8192u: ieee80211: rtl819x_BAProc.c " Derek Robson
2017-02-11 9:57 ` [PATCH 18/25] Staging: rtl8192u: ieee80211: rtl819x_HT.h " Derek Robson
2017-02-12 12:31 ` Greg KH
2017-02-11 9:57 ` [PATCH 19/25] Staging: rtl8192u: ieee80211: rtl819x_BA.h " Derek Robson
2017-02-11 9:57 ` [PATCH 20/25] Staging: rtl8192u: ieee80211: ieee80211_wx.c " Derek Robson
2017-02-11 9:58 ` [PATCH 21/25] Staging: rtl8192u: ieee80211: ieee80211_tx.c " Derek Robson
2017-02-11 9:58 ` [PATCH 22/25] Staging: rtl8192u: ieee80211: ieee80211_rx.c " Derek Robson
2017-02-11 9:58 ` [PATCH 23/25] Staging: rtl8192u: ieee80211: ieee80211_crypt.h " Derek Robson
2017-02-11 9:59 ` [PATCH 24/25] Staging: rtl8192u: ieee80211: ieee80211_crypt.c " Derek Robson
2017-02-11 9:59 ` [PATCH 25/25] Staging: rtl8192u: ieee80211: ieee80211.h " Derek Robson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170212123939.GA12038@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=devel@driverdev.osuosl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robsonde@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox