diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-01-22 17:53:47 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-14 23:28:22 +0100 |
commit | f510b233cfc7bfd57b6007071c52aa42e3d16b06 (patch) | |
tree | d7e91f4d82ee3bed078f5813377b73a1eb7e382f /kernel/lockdep_internals.h | |
parent | 3ff176ca47911630d1555f150d36daa2d0819ea9 (diff) | |
download | op-kernel-dev-f510b233cfc7bfd57b6007071c52aa42e3d16b06.zip op-kernel-dev-f510b233cfc7bfd57b6007071c52aa42e3d16b06.tar.gz |
lockdep: get_user_chars() redo
Generic, states independent, get_user_chars().
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/lockdep_internals.h')
-rw-r--r-- | kernel/lockdep_internals.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/lockdep_internals.h b/kernel/lockdep_internals.h index 7e653e6..a2cc7e9 100644 --- a/kernel/lockdep_internals.h +++ b/kernel/lockdep_internals.h @@ -70,9 +70,10 @@ enum { extern struct list_head all_lock_classes; extern struct lock_chain lock_chains[]; -extern void -get_usage_chars(struct lock_class *class, char *c1, char *c2, char *c3, - char *c4, char *c5, char *c6); +#define LOCK_USAGE_CHARS (1+LOCK_USAGE_STATES/2) + +extern void get_usage_chars(struct lock_class *class, + char usage[LOCK_USAGE_CHARS]); extern const char * __get_key_name(struct lockdep_subclass_key *key, char *str); |