Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4127394ybi; Mon, 3 Jun 2019 06:12:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7C3oyBgf9pHHR49yGM7pxWasgPpgIsINiz6zWNxeQiSoHXt98E+wPzo/mzAvxa5C8ad07 X-Received: by 2002:a17:90a:d151:: with SMTP id t17mr16425980pjw.60.1559567528912; Mon, 03 Jun 2019 06:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559567528; cv=none; d=google.com; s=arc-20160816; b=IciQ37EakWZ3YV0nAnLVuGZwp57FFLSyX9M711mKKIWzeki54JXH2aoKKClB5xX9lX aNKTB6TEtzPpmck/B1Br8h00+CL8w6Y8bISiRaynQjCggVrd+on5Y8zLyTnLchSdYdQG 8DVYiZzpl7KfhhQipMtLyGju1rf8zIY7lR3H/EsYv9CfcMMpvBfpttlez2QlbApAZ0nT abYzjZ8CZ/9Z5L/N/VBpufphwgrQQbZkr+E0H7m/6xRloomKFQmBbc9TPl7slQiozgwl bAF5j+9MOu8sl0csy0UMrG1LoTHCGiMSBRScAwdO3HA0gakim+PAY0u0aqF3THJk8z53 Oy8g== 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=axMoRurCx7P5uez1cqcSaps+epjAuRjig1jTffexH1g=; b=CHOGPBunu0z8K9CuwS9ODk2wC/X5JHUVO6YZyMdSZ8YD1t3bPujcQvypNAH0EaMd2V iyHr/cWCMDenNuP8U5jrqmQjc6yeS3wqQRgYtnS1WTGpQHTXBl4fB1Sg/PNfNFxfOHJc oozqB9FURDdeOG8FAeNxp+59EsHxACRyr3MFyg3egR36hHoSh5U9oBj8gXmFpT6jj/CP 3n7Cw9cVKsKZgD0slcEjr7iZa6yxOOpHS2QtHLpNFwieXqo0CAEIyJyf1EJP7LhEcVe7 nt1P1UOnqAtH9xDRFHzSpSLDerzCHgB+0Lvc+WZaWUtDFEoEfzhaNOxR+BeLjvIG+Q4L WIQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019051801 header.b=dQA1fCug; 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 d29si1464333pgd.490.2019.06.03.06.11.51; Mon, 03 Jun 2019 06:12:08 -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=dQA1fCug; 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 S1728232AbfFCNIp (ORCPT + 99 others); Mon, 3 Jun 2019 09:08:45 -0400 Received: from terminus.zytor.com ([198.137.202.136]:45803 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727841AbfFCNIo (ORCPT ); Mon, 3 Jun 2019 09:08:44 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x53D8YN4604764 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 3 Jun 2019 06:08:34 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x53D8YN4604764 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019051801; t=1559567314; bh=axMoRurCx7P5uez1cqcSaps+epjAuRjig1jTffexH1g=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=dQA1fCugfZHcedq/r4rLlbx+TQmOUYuPKAuKDKHBkR0Db8bCchz8Lf7/Il4aoOb0/ VWfhlG8Tkn1mmiMN1T+Y55kzw62s/ea1AzzlRdeuuCaGIAdDzqqp5E2qUGcx5Uz9Ra /4sfL2Ml3mxHp+RdIjkNp2qUEscyRrItMpAq3t/eF0m27fDv6S6NgYiF3CU+jQnZB4 Y2hBlkQ3mM9V4MdsyYw4UsKEAI9Wbj8EBlXtBsSjx4fqKcaDKhmu8sJ66tEO3X6sG3 6F5kgUWWaQ7DQGpP6vjfN9xn3eNDLEhuNOZ7aXrOXYRHUQ3wWgujMhKM6RTkJ3Hj8u RInt/jHKpTx0A== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x53D8X4m604761; Mon, 3 Jun 2019 06:08:33 -0700 Date: Mon, 3 Jun 2019 06:08:33 -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: torvalds@linux-foundation.org, peterz@infradead.org, duyuyang@gmail.com, tglx@linutronix.de, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org Reply-To: tglx@linutronix.de, duyuyang@gmail.com, peterz@infradead.org, torvalds@linux-foundation.org, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20190506081939.74287-5-duyuyang@gmail.com> References: <20190506081939.74287-5-duyuyang@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:locking/core] locking/lockdep: Remove useless conditional macro Git-Commit-ID: e7a38f63ba50dc95426dd50c43383dfecaa35d7f 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: e7a38f63ba50dc95426dd50c43383dfecaa35d7f Gitweb: https://git.kernel.org/tip/e7a38f63ba50dc95426dd50c43383dfecaa35d7f Author: Yuyang Du AuthorDate: Mon, 6 May 2019 16:19:20 +0800 Committer: Ingo Molnar CommitDate: Mon, 3 Jun 2019 11:55:35 +0200 locking/lockdep: Remove useless conditional macro Since #defined(CONFIG_PROVE_LOCKING) is used in the scope of #ifdef CONFIG_PROVE_LOCKING, it can be removed. 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-5-duyuyang@gmail.com Signed-off-by: Ingo Molnar --- kernel/locking/lockdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index a033df00fd1d..3c477018e184 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -1674,7 +1674,7 @@ check_redundant(struct lock_list *root, struct lock_class *target, return result; } -#if defined(CONFIG_TRACE_IRQFLAGS) && defined(CONFIG_PROVE_LOCKING) +#ifdef CONFIG_TRACE_IRQFLAGS static inline int usage_accumulate(struct lock_list *entry, void *mask) { @@ -2152,7 +2152,7 @@ static inline void inc_chains(void) nr_process_chains++; } -#endif +#endif /* CONFIG_TRACE_IRQFLAGS */ static void print_deadlock_scenario(struct held_lock *nxt, struct held_lock *prv) @@ -2829,7 +2829,7 @@ static inline int validate_chain(struct task_struct *curr, { return 1; } -#endif +#endif /* CONFIG_PROVE_LOCKING */ /* * We are building curr_chain_key incrementally, so double-check