aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/lockdep.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index e68bd7d694b4..d31f7f836a0d 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -445,21 +445,21 @@ atomic_t nr_find_usage_backwards_recursions;
445 * Locking printouts: 445 * Locking printouts:
446 */ 446 */
447 447
448#define __STR(foo) #foo
449#define STR(foo) __STR(foo)
450
451#define __USAGE(__STATE) \
452 [LOCK_USED_IN_##__STATE] = "IN-"STR(__STATE)"-W", \
453 [LOCK_ENABLED_##__STATE] = STR(__STATE)"-ON-W", \
454 [LOCK_USED_IN_##__STATE##_READ] = "IN-"STR(__STATE)"-R", \
455 [LOCK_ENABLED_##__STATE##_READ] = STR(__STATE)"-ON-R",
456
448static const char *usage_str[] = 457static const char *usage_str[] =
449{ 458{
450 [LOCK_USED] = "initial-use ", 459#define LOCKDEP_STATE(__STATE) __USAGE(__STATE)
451 [LOCK_USED_IN_HARDIRQ] = "in-hardirq-W", 460#include "lockdep_states.h"
452 [LOCK_USED_IN_SOFTIRQ] = "in-softirq-W", 461#undef LOCKDEP_STATE
453 [LOCK_ENABLED_SOFTIRQ] = "softirq-on-W", 462 [LOCK_USED] = "INITIAL USE",
454 [LOCK_ENABLED_HARDIRQ] = "hardirq-on-W",
455 [LOCK_USED_IN_HARDIRQ_READ] = "in-hardirq-R",
456 [LOCK_USED_IN_SOFTIRQ_READ] = "in-softirq-R",
457 [LOCK_ENABLED_SOFTIRQ_READ] = "softirq-on-R",
458 [LOCK_ENABLED_HARDIRQ_READ] = "hardirq-on-R",
459 [LOCK_USED_IN_RECLAIM_FS] = "in-reclaim-W",
460 [LOCK_USED_IN_RECLAIM_FS_READ] = "in-reclaim-R",
461 [LOCK_ENABLED_RECLAIM_FS] = "ov-reclaim-W",
462 [LOCK_ENABLED_RECLAIM_FS_READ] = "ov-reclaim-R",
463}; 463};
464 464
465const char * __get_key_name(struct lockdep_subclass_key *key, char *str) 465const char * __get_key_name(struct lockdep_subclass_key *key, char *str)