aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/locking/lockdep.c
diff options
context:
space:
mode:
authorYuyang Du <duyuyang@gmail.com>2019-05-06 04:19:34 -0400
committerIngo Molnar <mingo@kernel.org>2019-06-03 05:55:49 -0400
commitb4adfe8e05f15d7e73309c93c2c337df7eb5278f (patch)
tree14f682777ab8d305c5d49f738fd21a128155383e /kernel/locking/lockdep.c
parent4609c4f963f353613812f999bb027aac795bcde8 (diff)
locking/lockdep: Remove unused argument in __lock_release
The @nested is not used in __release_lock so remove it despite that it is not used in lock_release in the first place. Signed-off-by: Yuyang Du <duyuyang@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: bvanassche@acm.org Cc: frederic@kernel.org Cc: ming.lei@redhat.com Cc: will.deacon@arm.com Link: https://lkml.kernel.org/r/20190506081939.74287-19-duyuyang@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/locking/lockdep.c')
-rw-r--r--kernel/locking/lockdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index be4c1348ddcd..8169706df767 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -4096,7 +4096,7 @@ static int __lock_downgrade(struct lockdep_map *lock, unsigned long ip)
4096 * @nested is an hysterical artifact, needs a tree wide cleanup. 4096 * @nested is an hysterical artifact, needs a tree wide cleanup.
4097 */ 4097 */
4098static int 4098static int
4099__lock_release(struct lockdep_map *lock, int nested, unsigned long ip) 4099__lock_release(struct lockdep_map *lock, unsigned long ip)
4100{ 4100{
4101 struct task_struct *curr = current; 4101 struct task_struct *curr = current;
4102 struct held_lock *hlock; 4102 struct held_lock *hlock;
@@ -4384,7 +4384,7 @@ void lock_release(struct lockdep_map *lock, int nested,
4384 check_flags(flags); 4384 check_flags(flags);
4385 current->lockdep_recursion = 1; 4385 current->lockdep_recursion = 1;
4386 trace_lock_release(lock, ip); 4386 trace_lock_release(lock, ip);
4387 if (__lock_release(lock, nested, ip)) 4387 if (__lock_release(lock, ip))
4388 check_chain_key(current); 4388 check_chain_key(current);
4389 current->lockdep_recursion = 0; 4389 current->lockdep_recursion = 0;
4390 raw_local_irq_restore(flags); 4390 raw_local_irq_restore(flags);