kmemcheck: introduce bitfield API
authorVegard Nossum <vegard.nossum@gmail.com>
Sat, 30 Aug 2008 10:16:05 +0000 (12:16 +0200)
committerVegard Nossum <vegard.nossum@gmail.com>
Mon, 15 Jun 2009 13:49:23 +0000 (15:49 +0200)
commitfc7d0c9f2122e8bf58deaf1252b0e750df5b0e91
tree9279ca21566062038582682e59accccfa904054d
parentac61a7579625ddfca3b2e0aa298879a94d15884d
kmemcheck: introduce bitfield API

Add the bitfield API which can be used to annotate bitfields in structs
and get rid of false positive reports.

According to Al Viro, the syntax we were using (putting #ifdef inside
macro arguments) was not valid C. He also suggested using begin/end
markers instead, which is what we do now.

[rebased for mainline inclusion]
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
include/linux/kmemcheck.h