Subject: Re: sparse noise due to patch "net: fix kmemcheck annotations"

From: Eric Dumazet <[email-masked]>
Date: Wed, 11 Nov 2009 22:13:02 +0100

Stefan Richter a écrit :
> Hi Eric,
> 
> with above mentioned patch, committed as
> 14d18a81b5171d4433e41129619c75748b4f4d26, you changed
> 
> struct sk_buff {
> 	...
> 	__be16 protocol;
> 	...
> }
> to
> 	__be16 protocol:16;
> 
> This introduces the following warning from sparse:
> 
> include/linux/skbuff.h:357:41: error: invalid bitfield specifier for
> type restricted __be16.
> 
> So, one checker satisfied, another disturbed?  Any idea how to get this
> sparse-clean again?

No problem here... how do you get this error, and what is your sparse version ?