[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <37cca7e4-3c1f-b1ab-14b3-fd3dbbae8b01@gmail.com>
Date: Tue, 26 Jun 2018 21:44:19 +0200
From: Michael Straube <straube.linux@...il.com>
To: Andy Shevchenko <andy.shevchenko@...il.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
devel@...verdev.osuosl.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Joe Perches <joe@...ches.com>,
Dan Carpenter <dan.carpenter@...cle.com>
Subject: Re: [PATCH v3 3/4] staging: rtl8723bs: use ether_addr_copy() in
rtw_macaddr_cfg()
On 06/26/18 19:32, Andy Shevchenko wrote:
> On Tue, Jun 26, 2018 at 11:14 AM, Michael Straube
> <straube.linux@...il.com> wrote:
>> Use ether_addr_copy() instead of memcpy() to copy the mac address.
>>
>
> Suggested-by ?
>
I'll add it. Sorry, I was not aware of the Suggested-by tag.
> Btw, ensure that the source and destination buffers are aligned to u16
> as required by API.
To be honest I'm not sure how to do that excactly.
Use __align(2) in the array declarations? e.g.:
u8 mac[ETH_ALEN] __align(2);
Thanks for your help.
Michael
Powered by blists - more mailing lists