ieee1394: annotate bitfield
authorVegard Nossum <vegard.nossum@gmail.com>
Wed, 10 Sep 2008 13:15:23 +0000 (15:15 +0200)
committerVegard Nossum <vegard.nossum@gmail.com>
Mon, 15 Jun 2009 13:49:29 +0000 (15:49 +0200)
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
drivers/ieee1394/nodemgr.c

index a6d55bebe61ac1b3013f387d009116f4385cbfe0..5122b5a8aa2db1aea54221a70377a70d6e6ed021 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <linux/bitmap.h>
 #include <linux/kernel.h>
+#include <linux/kmemcheck.h>
 #include <linux/list.h>
 #include <linux/slab.h>
 #include <linux/delay.h>
@@ -39,7 +40,10 @@ struct nodemgr_csr_info {
        struct hpsb_host *host;
        nodeid_t nodeid;
        unsigned int generation;
+
+       kmemcheck_bitfield_begin(flags);
        unsigned int speed_unverified:1;
+       kmemcheck_bitfield_end(flags);
 };
 
 
@@ -1293,6 +1297,7 @@ static void nodemgr_node_scan_one(struct hpsb_host *host,
        u8 *speed;
 
        ci = kmalloc(sizeof(*ci), GFP_KERNEL);
+       kmemcheck_annotate_bitfield(ci, flags);
        if (!ci)
                return;