lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170607095708.5327-1-antoine.blin@lip6.fr>
Date:   Wed,  7 Jun 2017 11:57:08 +0200
From:   Antoine BLIN <antoine.blin@...6.fr>
To:     gregkh@...uxfoundation.org
Cc:     devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
        Antoine <antoine.blin@...6.fr>
Subject: [PATCH] Staging: wlan-ng: Fix sparse warnings by using appropriate endian types

From: Antoine <antoine.blin@...6.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@...6.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ