Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151473
b: refs/heads/master
c: c53bd2e
h: refs/heads/master
i:
  151471: 31dfed8
v: v3
  • Loading branch information
Vegard Nossum committed Jun 15, 2009
1 parent 1b94bf1 commit 6561f4c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e337b0fb3baa3c22490365b1bdee6f4741413d4
refs/heads/master: c53bd2e1949ddbe06fe2a6079c0658d58ce25edb
2 changes: 2 additions & 0 deletions trunk/drivers/misc/c2port/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/kmemcheck.h>
#include <linux/ctype.h>
#include <linux/delay.h>
#include <linux/idr.h>
Expand Down Expand Up @@ -891,6 +892,7 @@ struct c2port_device *c2port_device_register(char *name,
return ERR_PTR(-EINVAL);

c2dev = kmalloc(sizeof(struct c2port_device), GFP_KERNEL);
kmemcheck_annotate_bitfield(c2dev, flags);
if (unlikely(!c2dev))
return ERR_PTR(-ENOMEM);

Expand Down
3 changes: 3 additions & 0 deletions trunk/include/linux/c2port.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

#include <linux/device.h>
#include <linux/kmemcheck.h>

#define C2PORT_NAME_LEN 32

Expand All @@ -20,8 +21,10 @@
/* Main struct */
struct c2port_ops;
struct c2port_device {
kmemcheck_bitfield_begin(flags);
unsigned int access:1;
unsigned int flash_access:1;
kmemcheck_bitfield_end(flags);

int id;
char name[C2PORT_NAME_LEN];
Expand Down

0 comments on commit 6561f4c

Please sign in to comment.