diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-10-11 04:22:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:14:24 -0400 |
commit | 3dc3099a9b2c346b16383597fadaa79a05a52388 (patch) | |
tree | c2c2a49e135f5e565a4fd3e33aa5c2271d535374 | |
parent | 39913b31d0cd11b5b18a303e220c95ffbd9e1a88 (diff) |
[PATCH] lockdep: use BUILD_BUG_ON
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | kernel/lockdep.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c index 4c0553461000..805a322a5655 100644 --- a/kernel/lockdep.c +++ b/kernel/lockdep.c | |||
@@ -1114,8 +1114,6 @@ static int count_matching_names(struct lock_class *new_class) | |||
1114 | return count + 1; | 1114 | return count + 1; |
1115 | } | 1115 | } |
1116 | 1116 | ||
1117 | extern void __error_too_big_MAX_LOCKDEP_SUBCLASSES(void); | ||
1118 | |||
1119 | /* | 1117 | /* |
1120 | * Register a lock's class in the hash-table, if the class is not present | 1118 | * Register a lock's class in the hash-table, if the class is not present |
1121 | * yet. Otherwise we look it up. We cache the result in the lock object | 1119 | * yet. Otherwise we look it up. We cache the result in the lock object |
@@ -1153,8 +1151,7 @@ look_up_lock_class(struct lockdep_map *lock, unsigned int subclass) | |||
1153 | * (or spin_lock_init()) call - which acts as the key. For static | 1151 | * (or spin_lock_init()) call - which acts as the key. For static |
1154 | * locks we use the lock object itself as the key. | 1152 | * locks we use the lock object itself as the key. |
1155 | */ | 1153 | */ |
1156 | if (sizeof(struct lock_class_key) > sizeof(struct lock_class)) | 1154 | BUILD_BUG_ON(sizeof(struct lock_class_key) > sizeof(struct lock_class)); |
1157 | __error_too_big_MAX_LOCKDEP_SUBCLASSES(); | ||
1158 | 1155 | ||
1159 | key = lock->key->subkeys + subclass; | 1156 | key = lock->key->subkeys + subclass; |
1160 | 1157 | ||