summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@gmail.com>2009-02-26 14:05:59 +0100
committerVegard Nossum <vegard.nossum@gmail.com>2009-06-15 15:49:34 +0200
commitc53bd2e1949ddbe06fe2a6079c0658d58ce25edb (patch)
treea9663b949ab413031f09115aef2bf3bf5305ab27 /include
parent9e337b0fb3baa3c22490365b1bdee6f4741413d4 (diff)
downloadop-kernel-dev-c53bd2e1949ddbe06fe2a6079c0658d58ce25edb.zip
op-kernel-dev-c53bd2e1949ddbe06fe2a6079c0658d58ce25edb.tar.gz
c2port: annotate bitfield for kmemcheck
This silences a false positive warning with kmemcheck. Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/c2port.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/c2port.h b/include/linux/c2port.h
index 7b5a238..2a5cd86 100644
--- a/include/linux/c2port.h
+++ b/include/linux/c2port.h
@@ -10,6 +10,7 @@
*/
#include <linux/device.h>
+#include <linux/kmemcheck.h>
#define C2PORT_NAME_LEN 32
@@ -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];
OpenPOWER on IntegriCloud