From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966999AbcKLVR0 (ORCPT ); Sat, 12 Nov 2016 16:17:26 -0500 Received: from terminus.zytor.com ([198.137.202.10]:43528 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966978AbcKLVRV (ORCPT ); Sat, 12 Nov 2016 16:17:21 -0500 Date: Thu, 10 Nov 2016 23:36:55 -0800 From: tip-bot for Tahsin Erdogan Message-ID: Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, tahsin@google.com, mingo@kernel.org, tglx@linutronix.de, torvalds@linux-foundation.org, hpa@zytor.com Reply-To: peterz@infradead.org, tahsin@google.com, linux-kernel@vger.kernel.org, hpa@zytor.com, torvalds@linux-foundation.org, tglx@linutronix.de, mingo@kernel.org In-Reply-To: <1478592127-4376-1-git-send-email-tahsin@google.com> References: <1478592127-4376-1-git-send-email-tahsin@google.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:locking/core] locking/lockdep: Remove unused parameter from the add_lock_to_list() function Git-Commit-ID: 83f06168ef15da5dc735c7ea14fae67609ed9538 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 83f06168ef15da5dc735c7ea14fae67609ed9538 Gitweb: http://git.kernel.org/tip/83f06168ef15da5dc735c7ea14fae67609ed9538 Author: Tahsin Erdogan AuthorDate: Tue, 8 Nov 2016 00:02:07 -0800 Committer: Ingo Molnar CommitDate: Fri, 11 Nov 2016 08:25:20 +0100 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 Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/1478592127-4376-1-git-send-email-tahsin@google.com Signed-off-by: Ingo Molnar --- kernel/locking/lockdep.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 589d763..e74b438 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -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)