Interpretation of sparse warning

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: LKML <linux-kernel@...>
Date: Friday, September 14, 2007 - 4:01 pm

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


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Interpretation of sparse warning, Larry Finger, (Fri Sep 14, 4:01 pm)
Re: Interpretation of sparse warning, Stephen Hemminger, (Fri Sep 14, 4:17 pm)