From: Greg KH <gregkh@linuxfoundation.org>
To: Darshana Padmadas <darshanapadmadas@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH v3 1/4] Staging: rtl8192e: Replace memcpy with ether_addr_copy
Date: Wed, 1 Apr 2015 17:28:46 +0200 [thread overview]
Message-ID: <20150401152846.GA4557@kroah.com> (raw)
In-Reply-To: <1427471227-17259-2-git-send-email-darshanapadmadas@gmail.com>
On Fri, Mar 27, 2015 at 09:17:04PM +0530, Darshana Padmadas wrote:
> This patch fixes the following warning found by checkpatch.pl:
> Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2
>
> Pahole showed that the structure for BAReq and Delba is aligned:
> struct rtllib_hdr_3addr {
> __le16 frame_ctl; /* 0 2 */
> __le16 duration_id; /* 2 2 */
> u8 addr1[6]; /* 4 6 */
> u8 addr2[6]; /* 10 6 */
> u8 addr3[6]; /* 16 6 */
> __le16 seq_ctl; /* 22 2 */
> u8 payload[0]; /* 24 0 */
>
> /* size: 24, cachelines: 1, members: 7 */
> /* last cacheline: 24 bytes */
> };
>
> Signed-off-by: Darshana Padmadas <darshanapadmadas@gmail.com>
> ---
> drivers/staging/rtl8192e/rtl819x_BAProc.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
One of the patches in this series causes a bunch of build warnings,
which means you didn't test build them :(
So I can't take these, please fix them up, TEST THEM, and then resend.
thanks,
greg k-h
next prev parent reply other threads:[~2015-04-01 15:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-27 15:47 [PATCH v3 0/4] Replace memcpy with ether_addr_copy and fix checkpatch warning Darshana Padmadas
2015-03-27 15:47 ` [PATCH v3 1/4] Staging: rtl8192e: Replace memcpy with ether_addr_copy Darshana Padmadas
2015-04-01 15:28 ` Greg KH [this message]
2015-03-27 15:47 ` [PATCH v3 2/4] Staging: rtl8192e: Use ether_addr_copy instead of memcpy Darshana Padmadas
2015-03-27 15:47 ` [PATCH v3 3/4] Staging: rtl8192e: Use ether_addr_copy replacing memcpy Darshana Padmadas
2015-03-27 15:47 ` [PATCH v3 4/4] Staging: rtl8192e: Use ether_addr_copy for aligned addresses Darshana Padmadas
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=20150401152846.GA4557@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=darshanapadmadas@gmail.com \
--cc=outreachy-kernel@googlegroups.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.