All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: wlan-ng: Fix sparse warnings by using appropriate endian types
@ 2017-06-07  9:57 Antoine BLIN
  2017-06-13 10:06 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Antoine BLIN @ 2017-06-07  9:57 UTC (permalink / raw)
  To: gregkh; +Cc: devel, linux-kernel, Antoine

From: Antoine <antoine.blin@lip6.fr>

Fix the following sparse endianness warnings:

drivers/staging/wlan-ng/prism2sta.c:1949:17: warning: cast to restricted __le16
drivers/staging/wlan-ng/prism2sta.c:1949:17: warning: cast to restricted __le16
drivers/staging/wlan-ng/prism2sta.c:1949:17: warning: cast to restricted __le16
drivers/staging/wlan-ng/prism2sta.c:375:46: warning: cast to restricted __le16
drivers/staging/wlan-ng/prism2sta.c:377:33: warning: cast to restricted __le16
drivers/staging/wlan-ng/prism2sta.c:378:47: warning: cast to restricted __le16

Signed-off-by: antoine <antoine.blin@lip6.fr>
---
 drivers/staging/wlan-ng/hfa384x.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h
index 310e2c454590..ef0b9628305d 100644
--- a/drivers/staging/wlan-ng/hfa384x.h
+++ b/drivers/staging/wlan-ng/hfa384x.h
@@ -445,9 +445,9 @@ struct hfa384x_downloadbuffer {

 /*-- Information Record: commsquality --*/
 struct hfa384x_commsquality {
-	u16 cq_curr_bss;
-	u16 asl_curr_bss;
-	u16 anl_curr_fc;
+	__le16 cq_curr_bss;
+	__le16 asl_curr_bss;
+	__le16 anl_curr_fc;
 } __packed;

 /*-- Information Record: dmbcommsquality --*/
--
2.13.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Staging: wlan-ng: Fix sparse warnings by using appropriate endian types
  2017-06-07  9:57 [PATCH] Staging: wlan-ng: Fix sparse warnings by using appropriate endian types Antoine BLIN
@ 2017-06-13 10:06 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2017-06-13 10:06 UTC (permalink / raw)
  To: Antoine BLIN; +Cc: devel, linux-kernel

On Wed, Jun 07, 2017 at 11:57:08AM +0200, Antoine BLIN wrote:
> From: Antoine <antoine.blin@lip6.fr>
> 
> Fix the following sparse endianness warnings:
> 
> drivers/staging/wlan-ng/prism2sta.c:1949:17: warning: cast to restricted __le16
> drivers/staging/wlan-ng/prism2sta.c:1949:17: warning: cast to restricted __le16
> drivers/staging/wlan-ng/prism2sta.c:1949:17: warning: cast to restricted __le16
> drivers/staging/wlan-ng/prism2sta.c:375:46: warning: cast to restricted __le16
> drivers/staging/wlan-ng/prism2sta.c:377:33: warning: cast to restricted __le16
> drivers/staging/wlan-ng/prism2sta.c:378:47: warning: cast to restricted __le16
> 
> Signed-off-by: antoine <antoine.blin@lip6.fr>

I need a "real" name here, one you use to sign legal documents.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-13 10:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-07  9:57 [PATCH] Staging: wlan-ng: Fix sparse warnings by using appropriate endian types Antoine BLIN
2017-06-13 10:06 ` Greg KH

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.