Skip to content

Commit 83f0616

Browse files
Tahsin Erdoganingomolnar
authored andcommitted
locking/lockdep: Remove unused parameter from the add_lock_to_list() function
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>
1 parent 4c8ee71 commit 83f0616

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎kernel/locking/lockdep.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -840,9 +840,9 @@ static struct lock_list *alloc_list_entry(void)
840840
/*
841841
* Add a new dependency to the head of the list:
842842
*/
843-
static int add_lock_to_list(struct lock_class *class, struct lock_class *this,
844-
struct list_head *head, unsigned long ip,
845-
int distance, struct stack_trace *trace)
843+
static int add_lock_to_list(struct lock_class *this, struct list_head *head,
844+
unsigned long ip, int distance,
845+
struct stack_trace *trace)
846846
{
847847
struct lock_list *entry;
848848
/*
@@ -1869,14 +1869,14 @@ check_prev_add(struct task_struct *curr, struct held_lock *prev,
18691869
* Ok, all validations passed, add the new lock
18701870
* to the previous lock's dependency list:
18711871
*/
1872-
ret = add_lock_to_list(hlock_class(prev), hlock_class(next),
1872+
ret = add_lock_to_list(hlock_class(next),
18731873
&hlock_class(prev)->locks_after,
18741874
next->acquire_ip, distance, &trace);
18751875

18761876
if (!ret)
18771877
return 0;
18781878

1879-
ret = add_lock_to_list(hlock_class(next), hlock_class(prev),
1879+
ret = add_lock_to_list(hlock_class(prev),
18801880
&hlock_class(next)->locks_before,
18811881
next->acquire_ip, distance, &trace);
18821882
if (!ret)

0 commit comments

Comments
 (0)