提交 004cdb5a 编写于 作者: V Vegard Nossum

ieee1394: annotate bitfield

Signed-off-by: NVegard Nossum <vegard.nossum@gmail.com>
上级 45e3ff82
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <linux/bitmap.h> #include <linux/bitmap.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/kmemcheck.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/delay.h> #include <linux/delay.h>
...@@ -39,7 +40,10 @@ struct nodemgr_csr_info { ...@@ -39,7 +40,10 @@ struct nodemgr_csr_info {
struct hpsb_host *host; struct hpsb_host *host;
nodeid_t nodeid; nodeid_t nodeid;
unsigned int generation; unsigned int generation;
kmemcheck_bitfield_begin(flags);
unsigned int speed_unverified:1; unsigned int speed_unverified:1;
kmemcheck_bitfield_end(flags);
}; };
...@@ -1293,6 +1297,7 @@ static void nodemgr_node_scan_one(struct hpsb_host *host, ...@@ -1293,6 +1297,7 @@ static void nodemgr_node_scan_one(struct hpsb_host *host,
u8 *speed; u8 *speed;
ci = kmalloc(sizeof(*ci), GFP_KERNEL); ci = kmalloc(sizeof(*ci), GFP_KERNEL);
kmemcheck_annotate_bitfield(ci, flags);
if (!ci) if (!ci)
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册