All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: wlan-ng: Edit struct member type for endianness verification
@ 2016-09-22  3:20 Katie Dunne
  2016-09-23  6:48 ` [Outreachy kernel] " Alison Schofield
  0 siblings, 1 reply; 4+ messages in thread
From: Katie Dunne @ 2016-09-22  3:20 UTC (permalink / raw)
  To: outreachy-kernel

Fixes warnings found using sparse on
drivers/staging/wlan-ng/p80211conv.c:
warning: cast to restricted __le16
warning: cast to restricted __be16

Updates the corresponding type in
drivers/staging/wlan-ng/p80211conv.h

Signed-off-by: Katie Dunne <kdunne@mail.ccsf.edu>
---
 drivers/staging/wlan-ng/p80211conv.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/wlan-ng/p80211conv.h b/drivers/staging/wlan-ng/p80211conv.h
index 8c10357..d8fda07 100644
--- a/drivers/staging/wlan-ng/p80211conv.h
+++ b/drivers/staging/wlan-ng/p80211conv.h
@@ -130,7 +130,7 @@ struct p80211_metawep {
 struct wlan_ethhdr {
 	u8 daddr[ETH_ALEN];
 	u8 saddr[ETH_ALEN];
-	u16 type;
+	__be16 type;
 } __packed;
 
 /* local llc header type */
@@ -143,7 +143,7 @@ struct wlan_llc {
 /* local snap header type */
 struct wlan_snap {
 	u8 oui[WLAN_IEEE_OUI_LEN];
-	u16 type;
+	__le16 type;
 } __packed;
 
 /* Circular include trick */
-- 
2.7.4



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

end of thread, other threads:[~2016-09-23  7:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-22  3:20 [PATCH] staging: wlan-ng: Edit struct member type for endianness verification Katie Dunne
2016-09-23  6:48 ` [Outreachy kernel] " Alison Schofield
2016-09-23  7:06   ` Julia Lawall
2016-09-23  7:33     ` Alison Schofield

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.