Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4425907ybi; Mon, 3 Jun 2019 10:38:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWMEixHXqa73M/nD5WiA47OClwEQGNI0lU3ZIn1GWnGaSqCKY0Ac15k0P+Y0NpeyxVfXWr X-Received: by 2002:a17:902:bf03:: with SMTP id bi3mr31138576plb.146.1559583493626; Mon, 03 Jun 2019 10:38:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559583493; cv=none; d=google.com; s=arc-20160816; b=0HehWCTzDOu2n/2eZcBra4xvFOHT+CHsr36Sw34ZY+z1ysXWDV/kwecQF8KyIm8T3v zSwGd+sYzlHjDCro5ZGEiG+u/NKd5/rXhBamFTizBMJEQ+XSGbMkhDtwKr6EuwAHybdd EMU+uTwbrX40G9npzxUav6h65mU2TsfyI4tXbJxwnrQQGER0pqNTo/xqN5jSrFA9Wajv 6Sb5LMNzcILsUlhZrID+3z/Ws5a2gmxsa3Q3gzpoQsHl7Y8wwDPLR6I0jpjsyBMOkp9B C/6mz8eRevqVcQ4KbcB+4s/L4UqiE/oOhoe9OBWYqa5AJzht419LPpudxWtoZ/fklBHq sqjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=7x3A5oWFpgYr0tVgBDY3EP7l4/sPmFLYG4URyzXl+QI=; b=pOx9bq2EQjn4uvMO89p6/ArJE6z6tSjnzOG0lp9LssaSBJxdx9qkGBCpyeQxoKXPl4 CqYXd85CjAhSGOSPlbAGtSV9yW68K0Sg6Gf40NsgRm7tZLYqdkhP6/HTZM/gGj0vcGKV X3hrYFQfUiy6L68TkDqBwv5U3IJx+FIbTSgi8DSxXaegfYmLaUaSRNFvYRKB6XgfweJi ARvTNVSc7df9HcTuHOGzHi//vwfsdfWrKnD/wsHJDWkmw0pj7rN9RdewoJx/WiGYseMA gv2VFl7Gw18Srw02mtMliXvcPo0sBbRCHlf+oNTnqECymL6/5Z64Sz5Y6Wt8iVKJtY/9 3xAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019051801 header.b=VjmeaWuh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c123si21311998pfg.35.2019.06.03.10.37.56; Mon, 03 Jun 2019 10:38:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2019051801 header.b=VjmeaWuh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728459AbfFCNS7 (ORCPT + 99 others); Mon, 3 Jun 2019 09:18:59 -0400 Received: from terminus.zytor.com ([198.137.202.136]:38057 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726516AbfFCNS6 (ORCPT ); Mon, 3 Jun 2019 09:18:58 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x53DIml9606529 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 3 Jun 2019 06:18:48 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x53DIml9606529 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019051801; t=1559567928; bh=7x3A5oWFpgYr0tVgBDY3EP7l4/sPmFLYG4URyzXl+QI=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=VjmeaWuhOf5U7tvbTxVRI1KQ7KsiCJTk1Hh3Md8S7HWwLJVTw0wYerqy9Xat0/QRD Y8UJxrkkyOtLcbNr/nUrTfU1ripxRBNrKFKLKEP10T7XPyG+w8iZvInXtcy+lRiA8F Zf6u9gwqj/xmXYk/TrDyGPbAaINn7YzyLgKive7UGgLMvRZO/L+sSl7MtMx1epOOU1 fXSiTJmgsdITOLb4c09f2xgjus5H8G8fnpIlmo/1xS+K7TdqsAazzXg0EmiMy1kJl1 fsuX81AO94CttAsHnE7isvjWe47aNyPXlgA3JA+nUWMbzsz/6E14aSBc9l9cJm4kvU yN8ZIj+s5wdew== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x53DIl00606524; Mon, 3 Jun 2019 06:18:47 -0700 Date: Mon, 3 Jun 2019 06:18:47 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Yuyang Du Message-ID: Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, torvalds@linux-foundation.org, hpa@zytor.com, peterz@infradead.org, tglx@linutronix.de, duyuyang@gmail.com Reply-To: hpa@zytor.com, peterz@infradead.org, tglx@linutronix.de, duyuyang@gmail.com, linux-kernel@vger.kernel.org, mingo@kernel.org, torvalds@linux-foundation.org In-Reply-To: <20190506081939.74287-19-duyuyang@gmail.com> References: <20190506081939.74287-19-duyuyang@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:locking/core] locking/lockdep: Remove unused argument in __lock_release Git-Commit-ID: b4adfe8e05f15d7e73309c93c2c337df7eb5278f 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 X-Spam-Status: No, score=-0.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, FREEMAIL_FORGED_REPLYTO autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: b4adfe8e05f15d7e73309c93c2c337df7eb5278f Gitweb: https://git.kernel.org/tip/b4adfe8e05f15d7e73309c93c2c337df7eb5278f Author: Yuyang Du AuthorDate: Mon, 6 May 2019 16:19:34 +0800 Committer: Ingo Molnar CommitDate: Mon, 3 Jun 2019 11:55:49 +0200 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 Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner 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 --- kernel/locking/lockdep.c | 4 ++-- 1 file 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) * @nested is an hysterical artifact, needs a tree wide cleanup. */ static int -__lock_release(struct lockdep_map *lock, int nested, unsigned long ip) +__lock_release(struct lockdep_map *lock, unsigned long ip) { struct task_struct *curr = current; struct held_lock *hlock; @@ -4384,7 +4384,7 @@ void lock_release(struct lockdep_map *lock, int nested, check_flags(flags); current->lockdep_recursion = 1; trace_lock_release(lock, ip); - if (__lock_release(lock, nested, ip)) + if (__lock_release(lock, ip)) check_chain_key(current); current->lockdep_recursion = 0; raw_local_irq_restore(flags);