mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 18:23:53 +08:00
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>
This commit is contained in:
parent
4c8ee71620
commit
83f06168ef
@ -840,9 +840,9 @@ static struct lock_list *alloc_list_entry(void)
|
|||||||
/*
|
/*
|
||||||
* Add a new dependency to the head of the list:
|
* Add a new dependency to the head of the list:
|
||||||
*/
|
*/
|
||||||
static int add_lock_to_list(struct lock_class *class, struct lock_class *this,
|
static int add_lock_to_list(struct lock_class *this, struct list_head *head,
|
||||||
struct list_head *head, unsigned long ip,
|
unsigned long ip, int distance,
|
||||||
int distance, struct stack_trace *trace)
|
struct stack_trace *trace)
|
||||||
{
|
{
|
||||||
struct lock_list *entry;
|
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
|
* Ok, all validations passed, add the new lock
|
||||||
* to the previous lock's dependency list:
|
* 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,
|
&hlock_class(prev)->locks_after,
|
||||||
next->acquire_ip, distance, &trace);
|
next->acquire_ip, distance, &trace);
|
||||||
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
return 0;
|
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,
|
&hlock_class(next)->locks_before,
|
||||||
next->acquire_ip, distance, &trace);
|
next->acquire_ip, distance, &trace);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
|
Loading…
Reference in New Issue
Block a user