Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp430019img; Thu, 21 Mar 2019 00:58:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBtlutcQcKTe/TQHl32VgOgMEjIwBvGb26OH1k9kbK5owSY8sXWCBRaT6luuhW952HEeX5 X-Received: by 2002:a62:a219:: with SMTP id m25mr2033226pff.197.1553155129192; Thu, 21 Mar 2019 00:58:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553155129; cv=none; d=google.com; s=arc-20160816; b=sHDuExCZddtMuwpa/xGT46Iio8sHwhF3UAwvRClS1TE2U+8a/tIDFJDmV14XqCciBm lkV+xGf13XXbWDybTnm0q6wVEoqlEIx8uRA+iPNxZnzb4gyzZCutDv2Gog2UetiNwJ0D eqac2HYzjtd4bFT66m7z8InPTHgIxvmHrI6JWHHY+sUOe0moFC49i1QU4BJVKDxYp3oP yRJr+qszPkrzbMKPjX+GURkp2tif73JGIrQUrNGi5w18mxfhGY9o1jNfwA2tkDvV2pFZ TqZtRLvmUhYtyoibYrOrypeEajiqpf1fAfbK0hGqLLOihON/mH7UmVMenu/rRLuBC7px yqHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=gN4E+RszNdEs/XGGnrMCPOEE0TDaBFxJ5QKjz55XENw=; b=EKgo4fHHSRMiPNyOaKObfBkFDPWUdCuPf9kvmHPwCIxfrxsKKRsWS9I7LEgr3rJflh 47NlTt1JLvcnxUDdkPfCB9NLx9unwMOlF6qpxurBod8SkeP+ssA3z6DU4lpq/Yj4AZTT I878vpNTWldKr2dkMlUhzMy9B35iz/J9XeumpQ05FfS4m5/pdqjDf6jUtRyYGVPgOQim ZYbGFRe5fIXwjnEAln5E2hKNiF/RhWk3P2GIl3GPyC4tJ856GY9bEbjyls+OEg3Dyi90 DfFNwtand52gtxlRLxPUyVgRUZn2Y0mXin/K3tsQXpQePyqkMJWxxXPHVCTo3V4l56co /b6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f9UAp7PF; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si3972745ply.103.2019.03.21.00.58.34; Thu, 21 Mar 2019 00:58:49 -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=@gmail.com header.s=20161025 header.b=f9UAp7PF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727965AbfCUH5t (ORCPT + 99 others); Thu, 21 Mar 2019 03:57:49 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41965 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbfCUH5p (ORCPT ); Thu, 21 Mar 2019 03:57:45 -0400 Received: by mail-pf1-f195.google.com with SMTP id d25so3774879pfn.8 for ; Thu, 21 Mar 2019 00:57:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gN4E+RszNdEs/XGGnrMCPOEE0TDaBFxJ5QKjz55XENw=; b=f9UAp7PFPQW52C7cNsKn37V96Rc83XvkHGMziOJI/zL+jYEAMJ4v+Q0mX/wg+XU+qu LOVW1zPwsOggPCVm0wIv3LGKGyaTd6/ugkYuogQefXHgrwQaRsDK7147QWNL+oQ2Aq9j pPHtmJD/himtwDe2wKm/p3qxNevO2/1j4XShSIDhIE6LhaN/Iin43I+qXJk8ayPFK3OA BhkbY3sfXfi4VY+6Ig2oqB0sFrTXvk3YeqfDc/WSko8BdBR/xcQNnOdd0SKxZf3nxI6l 9mwSJRpOOK1aOK986An/H07st67pHQ9NgTTNPen6q7ZA8SAqKiqIdfEZdiEMcbx3iQNW W3vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gN4E+RszNdEs/XGGnrMCPOEE0TDaBFxJ5QKjz55XENw=; b=Uc+DpuU3+Ubz2vzoXKajEdOMr7WwFV4CMnu2LfOVgcOlwiaUlyo51FA+0n+nOZhVQD ls9QFF3N7KgMwB28QZjOC8hvKfesF2UNbpetaoqzyczl8lTQZ/14x0H7YwcCzRuHRn9M K9swsCPXrg3IfwhdpIq3IhQKKnK7nd13r/PWyjhBsbTnPRU4QH1Wbn//ASh5FE94T3Ul XVB1bgsWd8cCHSRKxt0t774nylJGlte+WuMKmDVAqdRwaPm2PyBPD07LTjc8BOYNDuqR f3PtwNvgMGTNtFPrIWm+Mi54EEkmHPPodg/u4uk78BMj3vWaaawooY++ogISDJIHlFq3 wk/w== X-Gm-Message-State: APjAAAWY+iDE19fBGCqrpOGux4bOgbA5vQHADXt2J9qLPq30pVt6sHHX masy9228QsjoaW8ca0D0hlA= X-Received: by 2002:a62:f94b:: with SMTP id g11mr2026623pfm.199.1553155065325; Thu, 21 Mar 2019 00:57:45 -0700 (PDT) Received: from localhost.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id e184sm6467148pfc.143.2019.03.21.00.57.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 00:57:44 -0700 (PDT) From: Yuyang Du To: peterz@infradead.org, will.deacon@arm.com, mingo@kernel.org Cc: bvanassche@acm.org, ming.lei@redhat.com, linux-kernel@vger.kernel.org, joe@perches.com, Yuyang Du Subject: [PATCH v3 04/18] locking/lockdep: Remove useless conditional macro Date: Thu, 21 Mar 2019 15:57:11 +0800 Message-Id: <20190321075725.14054-5-duyuyang@gmail.com> X-Mailer: git-send-email 2.17.2 (Apple Git-113) In-Reply-To: <20190321075725.14054-1-duyuyang@gmail.com> References: <20190321075725.14054-1-duyuyang@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since #defined(CONFIG_PROVE_LOCKING) is used in the scope of #ifdef CONFIG_PROVE_LOCKING, it can be removed. Signed-off-by: Yuyang Du --- 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 db0473d..eeea722 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -1678,7 +1678,7 @@ unsigned long lockdep_count_backward_deps(struct lock_class *class) return result; } -#if defined(CONFIG_TRACE_IRQFLAGS) && defined(CONFIG_PROVE_LOCKING) +#if defined(CONFIG_TRACE_IRQFLAGS) /* * Forwards and backwards subgraph searching, for the purposes of * proving that two subgraphs can be connected by a new dependency @@ -2056,7 +2056,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) @@ -2738,7 +2738,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 -- 1.8.3.1