Re: [PATCH] staging: wlan-ng: hfa384x_usb: fix sparse endianness warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jan 18, 2015 at 09:11:39AM +0200, Asaf Vertz wrote:
> Fixed the following warnings (reported by sparse):
> drivers/staging/wlan-ng/hfa384x_usb.c:3828:36: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:3229:16: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:3430:18: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:3349:51: warning: restricted __le16 degrades to integer
> drivers/staging/wlan-ng/hfa384x_usb.c:3357:37: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:3358:37: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:3393:36: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:3102:28: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:3004:28: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:1308:37: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:2713:25: warning: incorrect type in assignment (different base types)
> drivers/staging/wlan-ng/hfa384x_usb.c:2713:25:    expected unsigned short [unsigned] [usertype] type
> drivers/staging/wlan-ng/hfa384x_usb.c:2713:25:    got restricted __le16 [usertype] <noident>
> 
> Signed-off-by: Asaf Vertz <asaf.vertz@xxxxxxxxxxx>
> ---
>  drivers/staging/wlan-ng/hfa384x.h     |    4 ++--
>  drivers/staging/wlan-ng/hfa384x_usb.c |    2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)

Applied, thanks.

greg k-h
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux