]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
locking/lockdep: Remove unused parameter from the add_lock_to_list() function
authorTahsin Erdogan <tahsin@google.com>
Tue, 8 Nov 2016 08:02:07 +0000 (00:02 -0800)
committerIngo Molnar <mingo@kernel.org>
Fri, 11 Nov 2016 07:25:20 +0000 (08:25 +0100)
The 'class' parameter is not used, remove it.
n
Signed-off-by: Tahsin Erdogan <tahsin@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1478592127-4376-1-git-send-email-tahsin@google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/lockdep.c

index 589d763a49b3952322f08c00286675f314a3f76c..e74b438c850b2335378050da2a5f94c46108cf5b 100644 (file)
@@ -840,9 +840,9 @@ static struct lock_list *alloc_list_entry(void)
 /*
  * Add a new dependency to the head of the list:
  */
-static int add_lock_to_list(struct lock_class *class, struct lock_class *this,
-                           struct list_head *head, unsigned long ip,
-                           int distance, struct stack_trace *trace)
+static int add_lock_to_list(struct lock_class *this, struct list_head *head,
+                           unsigned long ip, int distance,
+                           struct stack_trace *trace)
 {
        struct lock_list *entry;
        /*
@@ -1869,14 +1869,14 @@ check_prev_add(struct task_struct *curr, struct held_lock *prev,
         * Ok, all validations passed, add the new lock
         * to the previous lock's dependency list:
         */
-       ret = add_lock_to_list(hlock_class(prev), hlock_class(next),
+       ret = add_lock_to_list(hlock_class(next),
                               &hlock_class(prev)->locks_after,
                               next->acquire_ip, distance, &trace);
 
        if (!ret)
                return 0;
 
-       ret = add_lock_to_list(hlock_class(next), hlock_class(prev),
+       ret = add_lock_to_list(hlock_class(prev),
                               &hlock_class(next)->locks_before,
                               next->acquire_ip, distance, &trace);
        if (!ret)