From: Vegard Nossum Date: Fri, 8 Jan 2010 22:42:35 +0000 (-0800) Subject: kmemcheck: make bitfield annotations truly no-ops when disabled X-Git-Tag: v2.6.33-rc4~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e992cd9b72a18122bd5c958715623057f110793f;p=pandora-kernel.git kmemcheck: make bitfield annotations truly no-ops when disabled It turns out that even zero-sized struct members (int foo[0];) will affect the struct layout, causing us in particular to lose 4 bytes in struct sock. This patch fixes the regression in CONFIG_KMEMCHECK=n case. Reported-by: Eric Dumazet Signed-off-by: Vegard Nossum Acked-by: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed