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-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 11 Nov 2019 13:30:55 +0000
From:   Jules Irenge <jbi.octave@...il.com>
To:     gregkh@...uxfoundation.org
Cc:     jerome.pouiller@...abs.com, devel@...verdev.osuosl.org,
        linux-kernel@...r.kernel.org, Jules Irenge <jbi.octave@...il.com>
Subject: [PATCH v2 3/3] staging: wfx: replace u32 by __le32

Replace u32 by __le32 to fix warning of cast from restricted __le32.
Issue detected by sparse tool.

Signed-off-by: Jules Irenge <jbi.octave@...il.com>
---
v1 uses casting to fix the warnings
v2 replace the declaration type of the variables

 drivers/staging/wfx/hif_api_mib.h | 48 +++++++++++++++----------------
 1 file changed, 24 insertions(+), 24 deletions(-)

diff --git a/drivers/staging/wfx/hif_api_mib.h b/drivers/staging/wfx/hif_api_mib.h
index 94b789ceb4ff..e0a67410add2 100644
--- a/drivers/staging/wfx/hif_api_mib.h
+++ b/drivers/staging/wfx/hif_api_mib.h
@@ -295,31 +295,31 @@ struct hif_mib_stats_table {
 } __packed;
 
 struct hif_mib_extended_count_table {
-	u32   count_plcp_errors;
-	u32   count_fcs_errors;
-	u32   count_tx_packets;
-	u32   count_rx_packets;
-	u32   count_rx_packet_errors;
-	u32   count_rx_decryption_failures;
-	u32   count_rx_mic_failures;
-	u32   count_rx_no_key_failures;
-	u32   count_tx_multicast_frames;
-	u32   count_tx_frames_success;
-	u32   count_tx_frame_failures;
-	u32   count_tx_frames_retried;
-	u32   count_tx_frames_multi_retried;
-	u32   count_rx_frame_duplicates;
-	u32   count_rts_success;
-	u32   count_rts_failures;
-	u32   count_ack_failures;
-	u32   count_rx_multicast_frames;
-	u32   count_rx_frames_success;
-	u32   count_rx_cmacicv_errors;
-	u32   count_rx_cmac_replays;
-	u32   count_rx_mgmt_ccmp_replays;
+	__le32   count_plcp_errors;
+	__le32   count_fcs_errors;
+	__le32   count_tx_packets;
+	__le32   count_rx_packets;
+	__le32   count_rx_packet_errors;
+	__le32   count_rx_decryption_failures;
+	__le32   count_rx_mic_failures;
+	__le32   count_rx_no_key_failures;
+	__le32   count_tx_multicast_frames;
+	__le32   count_tx_frames_success;
+	__le32   count_tx_frame_failures;
+	__le32   count_tx_frames_retried;
+	__le32   count_tx_frames_multi_retried;
+	__le32   count_rx_frame_duplicates;
+	__le32   count_rts_success;
+	__le32   count_rts_failures;
+	__le32   count_rx_multicast_frames;
+	__le32   count_rx_cmacicv_errors;
+	__le32   count_rx_cmac_replays;
+	__le32   count_rx_mgmt_ccmp_replays;
+	__le32   count_rx_beacon;
+	__le32   count_miss_beacon;
+	__le32   count_ack_failures;
+	__le32   count_rx_frames_success;
 	u32   count_rx_bipmic_errors;
-	u32   count_rx_beacon;
-	u32   count_miss_beacon;
 	u32   reserved[15];
 } __packed;
 
-- 
2.23.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ