All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alison Schofield <amsfield22@gmail.com>
To: Katie Dunne <kdunne@mail.ccsf.edu>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH] staging: wlan-ng: Edit struct member type for endianness verification
Date: Thu, 22 Sep 2016 23:48:05 -0700	[thread overview]
Message-ID: <20160923064804.GA2338@d830.WORKGROUP> (raw)
In-Reply-To: <20160922032014.GA31033@katie-Inspiron-5748>

On Wed, Sep 21, 2016 at 08:20:14PM -0700, Katie Dunne wrote:
> 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

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


> 
> 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
> 
> -- 
> 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 outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> 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.


  reply	other threads:[~2016-09-23  6:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-22  3:20 [PATCH] staging: wlan-ng: Edit struct member type for endianness verification Katie Dunne
2016-09-23  6:48 ` Alison Schofield [this message]
2016-09-23  7:06   ` [Outreachy kernel] " Julia Lawall
2016-09-23  7:33     ` Alison Schofield

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160923064804.GA2338@d830.WORKGROUP \
    --to=amsfield22@gmail.com \
    --cc=kdunne@mail.ccsf.edu \
    --cc=outreachy-kernel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.