public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: LKML <linux-kernel@vger.kernel.org>
Subject: Interpretation of sparse warning
Date: Fri, 14 Sep 2007 15:01:09 -0500	[thread overview]
Message-ID: <46EAE885.3080106@lwfinger.net> (raw)

The code sequence

        u32 macstat;
.....
        macstat = le32_to_cpu(rxhdr->mac_status);

generates the following sparse warnings

drivers/net/wireless/b43legacy/xmit.c:446:12: warning: cast to restricted type
drivers/net/wireless/b43legacy/xmit.c:446:12: warning: cast from restricted type

(#446 is the macstat = ..... line)

My version of sparse is from the git tree and was downloaded today.

I think the code sequence is correct. What, if anything, should I do to eliminate the warning?

Thanks,

Larry



             reply	other threads:[~2007-09-14 20:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-14 20:01 Larry Finger [this message]
2007-09-14 20:17 ` Interpretation of sparse warning Stephen Hemminger

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=46EAE885.3080106@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --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