* Interpretation of sparse warning
@ 2007-09-14 20:01 Larry Finger
2007-09-14 20:17 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Larry Finger @ 2007-09-14 20:01 UTC (permalink / raw)
To: LKML
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Interpretation of sparse warning
2007-09-14 20:01 Interpretation of sparse warning Larry Finger
@ 2007-09-14 20:17 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2007-09-14 20:17 UTC (permalink / raw)
To: linux-kernel
On Fri, 14 Sep 2007 15:01:09 -0500
Larry Finger <Larry.Finger@lwfinger.net> wrote:
> 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
>
Is rxhdr->mac_status properly declared as le32?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-14 20:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-14 20:01 Interpretation of sparse warning Larry Finger
2007-09-14 20:17 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox