Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39357
b: refs/heads/master
c: 3dc3099
h: refs/heads/master
i:
  39355: 30b7c0d
v: v3
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Oct 11, 2006
1 parent bb14830 commit e06c7b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39913b31d0cd11b5b18a303e220c95ffbd9e1a88
refs/heads/master: 3dc3099a9b2c346b16383597fadaa79a05a52388
5 changes: 1 addition & 4 deletions trunk/kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -1114,8 +1114,6 @@ static int count_matching_names(struct lock_class *new_class)
return count + 1;
}

extern void __error_too_big_MAX_LOCKDEP_SUBCLASSES(void);

/*
* Register a lock's class in the hash-table, if the class is not present
* yet. Otherwise we look it up. We cache the result in the lock object
Expand Down Expand Up @@ -1153,8 +1151,7 @@ look_up_lock_class(struct lockdep_map *lock, unsigned int subclass)
* (or spin_lock_init()) call - which acts as the key. For static
* locks we use the lock object itself as the key.
*/
if (sizeof(struct lock_class_key) > sizeof(struct lock_class))
__error_too_big_MAX_LOCKDEP_SUBCLASSES();
BUILD_BUG_ON(sizeof(struct lock_class_key) > sizeof(struct lock_class));

key = lock->key->subkeys + subclass;

Expand Down

0 comments on commit e06c7b4

Please sign in to comment.