staging: wlan-ng: Edit struct member type for endianness verification
PATCH 1/1 staging: wlan-ng: Edit struct member type for endianness verification
Fixes warnings found using sparse ondrivers/staging/wlan-ng/p80211conv.c:
warning: cast to restricted __le16
warning: cast to restricted __be16
Updates the corresponding type indrivers/staging/wlan-ng/p80211conv.h
--- drivers/staging/wlan-ng/p80211conv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wlan-ng/p80211conv.h +2 -2
@@ -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 */
Signature · 1 line
2.7.4
Quoted 7 lines · Katie Dunne
Fixes warnings found using sparse on
drivers/staging/wlan-ng/p80211conv.c:
warning: cast to restricted__le16
warning: cast to restricted__be16Updates the corresponding type in
drivers/staging/wlan-ng/p80211conv.h
Hi Katie,
I ran sparse on p80211conv.c before the patch, and then again after the patch and can see the sparse errors that the change cleans up. My concern is with the ones it leaves undone and new ones added at line 452.
I'm guessing it's best to work this type of problem as a whole, rather than addressing pieces of it.
I see Greg is maintainer, so look some more at those warnings and wait and see what he says.
alisons
Quoted 37 lines
Signed-off-by Katie Dunne <[email protected]>--- drivers/staging/wlan-ng/p80211conv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/wlan-ng/p80211conv.h +2
-2@@ -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 */ Signature · 8 lines
2.7.4 -- You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160922032014.GA31033%40katie-Inspiron-5748. For more options, visit https://groups.google.com/d/optout.
Quoted 11 lines · Alison Schofield
Quoted 7 lines · Katie Dunne
Fixes warnings found using sparse on
drivers/staging/wlan-ng/p80211conv.c:
warning: cast to restricted__le16
warning: cast to restricted__be16Updates the corresponding type in
drivers/staging/wlan-ng/p80211conv.hHi Katie,
Quoted 7 lines
I ran sparse on
p80211conv.cbefore the patch, and then again after the patch and can see the sparse errors that the change cleans up. My concern is with the ones it leaves undone and new ones added at line 452.I'm guessing it's best to work this type of problem as a whole, rather than addressing pieces of it.
I'm not certain that it is necessary to address all instances of an issue, if they are disjoint, and if they require different amounts of knowledge. Then nothing would happen until the most expert person comes across the issue. And anyway the tool will continue to find the other occurrences. But adding new issues is not good.
julia
Quoted 52 lines
I see Greg is maintainer, so look some more at those warnings and wait and see what he says.
alisons
Quoted 31 lines
Signed-off-by Katie Dunne <[email protected]>--- drivers/staging/wlan-ng/p80211conv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/wlan-ng/p80211conv.h +2
-3@@ -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
Quoted 6 lines
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160922032014.GA31033%40katie-Inspiron-5748.
For more options, visit https://groups.google.com/d/optout.--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160923064804.GA2338%40d830.WORKGROUP.
For more options, visit https://groups.google.com/d/optout.
Quoted 23 lines · Julia Lawall
Quoted 11 lines · Alison Schofield
Quoted 7 lines · Katie Dunne
Fixes warnings found using sparse on
drivers/staging/wlan-ng/p80211conv.c:
warning: cast to restricted__le16
warning: cast to restricted__be16Updates the corresponding type in
drivers/staging/wlan-ng/p80211conv.hHi Katie,
Quoted 7 lines
I ran sparse on
p80211conv.cbefore the patch, and then again after the patch and can see the sparse errors that the change cleans up. My concern is with the ones it leaves undone and new ones added at line 452.I'm guessing it's best to work this type of problem as a whole, rather than addressing pieces of it.
Quoted 7 lines
I'm not certain that it is necessary to address all instances of an issue, if they are disjoint, and if they require different amounts of knowledge. Then nothing would happen until the most expert person comes across the issue. And anyway the tool will continue to find the other occurrences. But adding new issues is not good.
julia
Not sure these could be called disjoint. They are all about managing the incoming data - endianess related warnings. The changes are also in a header file, so it fans out even further than just the file mentioned above. alisons
Quoted 54 lines
Quoted 54 lines
I see Greg is maintainer, so look some more at those warnings and wait and see what he says.
alisons
Quoted 31 lines
Signed-off-by Katie Dunne <[email protected]>--- drivers/staging/wlan-ng/p80211conv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/wlan-ng/p80211conv.h +2
-3@@ -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
Quoted 6 lines
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160922032014.GA31033%40katie-Inspiron-5748.
For more options, visit https://groups.google.com/d/optout.--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160923064804.GA2338%40d830.WORKGROUP.
For more options, visit https://groups.google.com/d/optout.