diff options
| author | Ming Lei <[email protected]> | 2009-04-24 15:10:06 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-04-26 16:21:24 +0000 |
| commit | 992d7ced75322307035a0e94074eb7188612a680 (patch) | |
| tree | cbbe759b02e48c379ee711ad0654965a17bcbcf2 /lib/dma-debug.c | |
| parent | locking: clarify kernel-taint warning message (diff) | |
| download | kernel-992d7ced75322307035a0e94074eb7188612a680.tar.gz kernel-992d7ced75322307035a0e94074eb7188612a680.zip | |
locking: Documentation: lockdep-design.txt, fix note of state bits
From source code of get_usage_char(), the previous note is not correct,
so fix it.
static char get_usage_char(struct lock_class *class, enum lock_usage_bit bit)
{
char c = '.';
if (class->usage_mask & lock_flag(bit + 2))/*LOCK_ENABLED_##STATE*/
c = '+';
if (class->usage_mask & lock_flag(bit)) {/*LOCK_USED_IN_##STATE*/
c = '-';
if (class->usage_mask & lock_flag(bit + 2))
c = '?';
}
return c;
}
note:
1) The 'bit' parameter always is passed as LOCK_USED_IN_##STATE
or LOCK_USED_IN_##STATE_READ , from get_usage_chars().
Signed-off-by: Ming Lei <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions
