public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Asaf Vertz <asaf.vertz@tandemg.com>
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: wlan-ng: hfa384x_usb: fix sparse endianness warnings
Date: Sun, 25 Jan 2015 20:01:30 +0800	[thread overview]
Message-ID: <20150125120130.GB14049@kroah.com> (raw)
In-Reply-To: <20150118071139.GA2248@ubuntu>

On Sun, Jan 18, 2015 at 09:11:39AM +0200, Asaf Vertz wrote:
> Fixed the following warnings (reported by sparse):
> drivers/staging/wlan-ng/hfa384x_usb.c:3828:36: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:3229:16: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:3430:18: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:3349:51: warning: restricted __le16 degrades to integer
> drivers/staging/wlan-ng/hfa384x_usb.c:3357:37: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:3358:37: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:3393:36: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:3102:28: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:3004:28: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:1308:37: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:2713:25: warning: incorrect type in assignment (different base types)
> drivers/staging/wlan-ng/hfa384x_usb.c:2713:25:    expected unsigned short [unsigned] [usertype] type
> drivers/staging/wlan-ng/hfa384x_usb.c:2713:25:    got restricted __le16 [usertype] <noident>
> 
> Signed-off-by: Asaf Vertz <asaf.vertz@tandemg.com>
> ---
>  drivers/staging/wlan-ng/hfa384x.h     |    4 ++--
>  drivers/staging/wlan-ng/hfa384x_usb.c |    2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)

Applied, thanks.

greg k-h

      reply	other threads:[~2015-01-25 16:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-18  7:11 [PATCH] staging: wlan-ng: hfa384x_usb: fix sparse endianness warnings Asaf Vertz
2015-01-25 12:01 ` Greg KH [this message]

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=20150125120130.GB14049@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=asaf.vertz@tandemg.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox