Skip to content

Commit

Permalink
ieee1394: annotate bitfield
Browse files Browse the repository at this point in the history
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
  • Loading branch information
Vegard Nossum committed Jun 15, 2009
1 parent 45e3ff8 commit 004cdb5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/ieee1394/nodemgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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);
};


Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 004cdb5

Please sign in to comment.