Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: remove two kmemcheck annotations

__alloc_skb() uses a memset() to clear all the beginning of skb,
including bitfields contained in 'flags1' & 'flags2'.

We dont need any more to use kmemcheck_annotate_bitfield() on these
fields. However, we still need it for the clone part, which is not
cleared.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Eric Dumazet and committed by
David S. Miller
52ee7a04 1a18abaa

-2
-2
net/core/skbuff.c
··· 202 202 skb->data = data; 203 203 skb_reset_tail_pointer(skb); 204 204 skb->end = skb->tail + size; 205 - kmemcheck_annotate_bitfield(skb, flags1); 206 - kmemcheck_annotate_bitfield(skb, flags2); 207 205 #ifdef NET_SKBUFF_DATA_USES_OFFSET 208 206 skb->mac_header = ~0U; 209 207 #endif