Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1684571 > unrolled thread

[PATCH] Staging: wlan-ng: hfa384x.h: fixed sparse warning

Started byVitali Liaukovich <vitali.liaukovich@gmail.com>
First post2017-07-10 20:40 +0200
Last post2017-07-10 20:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] Staging: wlan-ng: hfa384x.h: fixed sparse warning Vitali Liaukovich <vitali.liaukovich@gmail.com> - 2017-07-10 20:40 +0200

#1684571 — [PATCH] Staging: wlan-ng: hfa384x.h: fixed sparse warning

FromVitali Liaukovich <vitali.liaukovich@gmail.com>
Date2017-07-10 20:40 +0200
Subject[PATCH] Staging: wlan-ng: hfa384x.h: fixed sparse warning
Message-ID<u1LLd-94-49@gated-at.bofh.it>
Fields of hfa384x_commsquality were used as __le16 but defined as u16.
Type is changed to __le16.

Signed-off-by: Vitali Liaukovich <vitali.liaukovich@gmail.com>
---
 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 018db22..f28b057 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.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web