Re: [PATCH] staging: wlan-ng: Fix endianness warnings

From: Greg KH
Date: Tue Jul 18 2017 - 02:59:10 EST


On Wed, Jul 12, 2017 at 09:38:50PM +0100, alfonsolimaastor@xxxxxxxxx wrote:
> From: Alfonso Lima Astor <alfonsolimaastor@xxxxxxxxx>
>
> These variables were set to u16 and u32 although they always hold a little
> endian value.
>
> This patch fixes multiple sparse warnings like:
> drivers/staging/wlan-ng/prism2sta.c:375:46: warning: cast to restricted __le16
>
> Signed-off-by: Alfonso Lima Astor <alfonsolimaastor@xxxxxxxxx>
> ---
> drivers/staging/wlan-ng/hfa384x.h | 92 ++++++++++++++++++-------------------
> drivers/staging/wlan-ng/prism2sta.c | 8 ++--
> 2 files changed, 50 insertions(+), 50 deletions(-)

Does not apply to my tree, I think someone else already did this same
thing, sorry.

greg k-h