Re: Interpretation of sparse warning

2007-09-14 Thread Stephen Hemminger
On Fri, 14 Sep 2007 15:01:09 -0500 Larry Finger <[EMAIL PROTECTED]> 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 rest

Interpretation of sparse warning

2007-09-14 Thread Larry Finger
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