[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150511082646.GI14154@mwanda>
Date: Mon, 11 May 2015 11:26:47 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Mateusz Kulikowski <mateusz.kulikowski@...il.com>
Cc: gregkh@...uxfoundation.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 03/33] staging: rtl8192e: Mark unaligned memcpy()
On Sat, May 09, 2015 at 11:18:51PM +0200, Mateusz Kulikowski wrote:
> Comment unaligned memcpy() that trigger PREFER_ETHER_ADDR_COPY
> checkpatch.pl warning.
> It will prevent accidential "Fix" to ether_addr_copy().
>
> Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@...il.com>
> ---
> drivers/staging/rtl8192e/rtllib_rx.c | 20 ++++++++++++--------
> 1 file changed, 12 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c
> index ebb328d..65e4d13 100644
> --- a/drivers/staging/rtl8192e/rtllib_rx.c
> +++ b/drivers/staging/rtl8192e/rtllib_rx.c
> @@ -488,15 +488,19 @@ void rtllib_indicate_packets(struct rtllib_device *ieee, struct rtllib_rxb **prx
> * and replace EtherType
> */
> skb_pull(sub_skb, SNAP_SIZE);
> - memcpy(skb_push(sub_skb, ETH_ALEN), prxb->src, ETH_ALEN);
> - memcpy(skb_push(sub_skb, ETH_ALEN), prxb->dst, ETH_ALEN);
> + memcpy(skb_push(sub_skb, ETH_ALEN), prxb->src,
> + ETH_ALEN); /* Must be unaligned */
Which part isn't aligned? I think they both are.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists