Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp134883ybi; Fri, 24 May 2019 01:14:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjvNfk44Ip+VCLXRyYzNDw2kV/LtTHW3C3JErs3ITO/QkaUjUs9cUEuq71vXOFfMb0Qmur X-Received: by 2002:a63:ca4b:: with SMTP id o11mr18219693pgi.295.1558685644857; Fri, 24 May 2019 01:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558685644; cv=none; d=google.com; s=arc-20160816; b=wteBSMT0fbqkbeHD+RrSWUAM+G3fYqGm5S3UaHcQT6g0ZQkYdUvSvT+3Pw2YZUFlKG kKVJUARfWbD/pBwyR+UF2c8vvrzifq1Ll4Q0oZfxjEDxtWB3uYbJuIM2cSCRINP5ur4x 7zkzAYFi61C06q9KXNkC1mUmSn9SNaioT+UdcOwlhuTWLZNp1jEzSkAQvT9Vg/nz9xyQ YRtBiB8W8ZEWxdB0Z1OddQXDrdJ1zFiBbBTc2IaZlu9E9mWZNIu6Y/dA6J+4EpsTdMgs TWHAGpYBwd2tNYixwMPP3aN4sd3yDX+bTxEtNIkqf51wFDtnwb4yNxA+gyhvgbicIGIb CxWQ== 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=QuzX0rf8B5EgG1b2rUQWn/FFr7x3DA/wf0KS8rFHils=; b=ISVXO3atCbFoZ9r6W/pw8xosPdV3L7uNDa0r1Rjm2JZxZQXwPwk/7Tb4HBwm6FgSzc vsSGixjAgjDob75JnU70wRSMiD+K6uqFyJXV/dGuvgtiLegm+94HazFK4QuyK38gYidl NKQkmGmDqbKIX4XbC3sOr4WASEa3/zt+vk8GCDzvXzPEhRqzIstZz/IdI4p1Yrf4UDtr CsQeEOqSKDZTRJjlqCjGoPS5oTSvRSgifkECyFbBgLCXg1iK1c9bfvr/7JuU96b6SJkI 05loQIMCfs2XcqV7IOdkceF2EwyY3OOOcTTo/cPskk4Vwd63lEgptLj+4/OCt6laKenp VJ0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019051801 header.b=Xvczf2tB; 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 k33si3152129pld.415.2019.05.24.01.13.47; Fri, 24 May 2019 01:14:04 -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=Xvczf2tB; 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 S2389424AbfEXILJ (ORCPT + 99 others); Fri, 24 May 2019 04:11:09 -0400 Received: from terminus.zytor.com ([198.137.202.136]:59421 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389142AbfEXILJ (ORCPT ); Fri, 24 May 2019 04:11:09 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x4O8Awv7119070 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 24 May 2019 01:10:58 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x4O8Awv7119070 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019051801; t=1558685459; bh=QuzX0rf8B5EgG1b2rUQWn/FFr7x3DA/wf0KS8rFHils=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=Xvczf2tBEGd1AbMmp2kv9iSD0MMXMVxBMOxCIQmuJLVosb7FikD5M1lbV6EWMC8uj oIHVEXXp/RIpbZ4GPqlmY44u7TH46ZXsSdvCwQ7ceaLWnmDmBVVE4/PgkZZpPO8S0W ovCGibhw359p0rHuvMSj3kVRPcwaKoEdHGc2BCW3HVScWUl+NOLG0a0htULE3NdT+a ArlR8Z9HVbzzFQnRjJ/fNUwnbPpTFzpyzk1vqx0iYEij/UHUNGzYJw6OFzGbtGTZZF gWBG/nZF7GPkQk9skAsAQ22GYISIFBS6iOLcAnIUJz1ZWcaKEd+regO/qGsUYEBxew co1JSXatdH+sg== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x4O8AwEn119067; Fri, 24 May 2019 01:10:58 -0700 Date: Fri, 24 May 2019 01:10:58 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Anders Roxell Message-ID: Cc: linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, peterz@infradead.org, tglx@linutronix.de, mingo@kernel.org, anders.roxell@linaro.org, hpa@zytor.com Reply-To: anders.roxell@linaro.org, hpa@zytor.com, linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@kernel.org, torvalds@linux-foundation.org, tglx@linutronix.de In-Reply-To: <20190516191326.27003-1-anders.roxell@linaro.org> References: <20190516191326.27003-1-anders.roxell@linaro.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:locking/core] locking/lockdep: Remove the unused print_lock_trace() function Git-Commit-ID: c0090c4c85c27d1fa3d785c935501b7207cd2869 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.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_03_06,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, DKIM_VALID_EF 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: c0090c4c85c27d1fa3d785c935501b7207cd2869 Gitweb: https://git.kernel.org/tip/c0090c4c85c27d1fa3d785c935501b7207cd2869 Author: Anders Roxell AuthorDate: Thu, 16 May 2019 21:13:26 +0200 Committer: Ingo Molnar CommitDate: Fri, 24 May 2019 09:05:46 +0200 locking/lockdep: Remove the unused print_lock_trace() function gcc warns that function print_lock_trace() is unused if CONFIG_PROVE_LOCKING isn't set: ../kernel/locking/lockdep.c:2820:13: warning: ‘print_lock_trace’ defined but not used [-Wunused-function] Rework so we remove the function if CONFIG_PROVE_LOCKING isn't set. Signed-off-by: Anders Roxell Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: will.deacon@arm.com Fixes: c120bce78065 ("lockdep: Simplify stack trace handling") Link: http://lkml.kernel.org/r/20190516191326.27003-1-anders.roxell@linaro.org Signed-off-by: Ingo Molnar --- kernel/locking/lockdep.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 6b283b4f87aa..8d32ae7768a7 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -2818,10 +2818,6 @@ static inline int validate_chain(struct task_struct *curr, { return 1; } - -static void print_lock_trace(struct lock_trace *trace, unsigned int spaces) -{ -} #endif /*