Skip to contentSkip to conversation

locking/lockdep: Remove duplicated lock_class_ops percpu array

PATCH-tip Waiman Long 2 participants 2 messages Oct 12, 2018 – Oct 16, 2018 Locking primitives

lore
Share & tools
lore

Waiman Long

author reviewer
#0 lore raw

Remove the duplicated lock_class_ops percpu array that is not used anywhere.

Fixes 8ca2b56cd7da ("locking/lockdep: Make class->ops a percpu counter

and move it under CONFIG_DEBUG_LOCKDEP=y")

---
 kernel/locking/lockdep.c | 1 -
 1 file changed, 1 deletion(-)
kernel/locking/lockdep.c +0 -1
index 5faeb2e..be76f47 100644
@@ -435,7 +435,6 @@ static int save_trace(struct stack_trace *trace)
  * Various lockdep statistics:
  */
 DEFINE_PER_CPU(struct lockdep_stats, lockdep_stats);
-DEFINE_PER_CPU(unsigned long [MAX_LOCKDEP_KEYS], lock_class_ops);
 #endif
 
 /*
Signature · 1 line
1.8.3.1
#1 lore raw

[tip:locking/core] locking/lockdep: Remove duplicated 'lock_class_ops' percpu array

locking/lockdep: Remove duplicated 'lock_class_ops' percpu array
Commit-ID:  4766ab5677a2842834f9bc4a21587256a811531c
Gitweb:     https://git.kernel.org/tip/4766ab5677a2842834f9bc4a21587256a811531c
Author:     Waiman Long <[email protected]>
AuthorDate: Fri, 12 Oct 2018 17:42:27 -0400
Committer:  Ingo Molnar <[email protected]>
CommitDate: Tue, 16 Oct 2018 08:21:10 +0200

locking/lockdep: Remove duplicated 'lock_class_ops' percpu array

Remove the duplicated 'lock_class_ops' percpu array that is not used anywhere.

Cc Linus Torvalds <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Will Deacon <[email protected]>
Fixes 8ca2b56cd7da ("locking/lockdep: Make class->ops a percpu counter and move it under CONFIG_DEBUG_LOCKDEP=y")
---
 kernel/locking/lockdep.c | 1 -
 1 file changed, 1 deletion(-)
kernel/locking/lockdep.c +0 -1
index a0f83058d6aa..8a732c856624 100644
@@ -436,7 +436,6 @@ unsigned int max_lockdep_depth;
  * Various lockdep statistics:
  */
 DEFINE_PER_CPU(struct lockdep_stats, lockdep_stats);
-DEFINE_PER_CPU(unsigned long [MAX_LOCKDEP_KEYS], lock_class_ops);
 #endif
 
 /*