Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp404373img; Tue, 26 Feb 2019 02:06:15 -0800 (PST) X-Google-Smtp-Source: AHgI3IarEN6XkCv1JSrVXJoXxZga6Pgxxc410JndCb8tExCZDbTKHBek40KpMnJVcDdi8AZQoT8+ X-Received: by 2002:a65:62ce:: with SMTP id m14mr4539581pgv.101.1551175575886; Tue, 26 Feb 2019 02:06:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551175575; cv=none; d=google.com; s=arc-20160816; b=UI2+YEbohOpoHbNlFGgyWarZ/T32AthQyBo3Gzccm5hRDBoRaE3TMRoJcTa4GsHeCg YmL4oRmcU0LfTzih6OMRn8Z7EI0D/UhPgieHaGpheBHqIkAYewRA7aAzmo6DJ9sYTj+5 idw8Bf8fWaATnOuByhHKED/X+L/y6nRz2YIqTEcAGMpaztVkDvtEHjDBXNn3xoVgKo1T vP+BgllCVHao+BMpynAYHvoxQ2209A7fjWcriRgytbv1LbMwbRh59zVkJUVXARpBUP58 LsZ9iSC0IEzFGW4kwVyh5pNjJ+d9pR8rzsdjPjneOYJ7if09xbH+PLnQjZUpVjibqdhM 7nKg== 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=T8PEITo4hgwI3Ud97GyB2V2HzIGkWk0ISKir1FA4dRQ=; b=jndThGhM9yiigJs3qJbgCxvfU9nQp7tkwgHGBzayccXO+TgvVKva2ATO/SejvH9HW0 FMk7XyqPi/be+7fbvaGmasYUTq4vFrrDhUf9pePdDiLe05+71xTZVTv6bcahR+Z9RJkc 2QFYcXUwMfw30wGPPInYCidue9gs/ApvSABH8+YeqRHgAE+sUuLMnNmTV1rdMxVl1EbX nM/tM+YbLU7lk236FJr+hskl/wxC75bkuDYSv7TJAAzrQl/k+eYycoPIVEsTZhI7nRtD nOmj05Og5lGgVOGOO+WVsK2mSeV5ooeyMgNpaDMCJpZIPtg5A0Gw2V+lZkYjaLnl5t4J yzpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Wk83/0uQ"; 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 b13si11068914pgt.374.2019.02.26.02.06.00; Tue, 26 Feb 2019 02:06:15 -0800 (PST) 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="Wk83/0uQ"; 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 S1728303AbfBZKEJ (ORCPT + 99 others); Tue, 26 Feb 2019 05:04:09 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:37121 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727763AbfBZKDq (ORCPT ); Tue, 26 Feb 2019 05:03:46 -0500 Received: by mail-pl1-f196.google.com with SMTP id q3so6010088pll.4 for ; Tue, 26 Feb 2019 02:03:46 -0800 (PST) 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=T8PEITo4hgwI3Ud97GyB2V2HzIGkWk0ISKir1FA4dRQ=; b=Wk83/0uQA6FBfPbD3T/4z0/uYeT3QElUcd1OUxOaYExTCyky2P5JDL+s0+k/hkurYq x41SByXrZDbLLGnma855PcEWCiI0I/BImAAEmzd3hjldPGiFf8++CM/TSiLAqcuzQU0a tN9szxPoQX+zkJz75X8Zd6wLQCeteqSN10BPlxlpqVqugjvyEUhiC7i4RbUSg+9qovt6 NXUbC/9/IwrV/Tw8aw9tdIR5DYhJMowwL/YJLnNNegyjI1VQkoVHAl1VAe1hyZDmAtg7 tIKJScjtzA+jmOZObfPRgWFBbo4norv+j2vuXuo9XsfsQzQVYQAf4NFtxLyxCuRzBbys Qz8g== 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=T8PEITo4hgwI3Ud97GyB2V2HzIGkWk0ISKir1FA4dRQ=; b=GkbZe7KXClza/yd/0ncBDHhwjIpxEorqRLXZQ8TpZkP15eqyxLqeHWCxb8o9x4NfNk +Bo2bQondFggrVwSKiT0/CW79z6xIUf07tQbJ+Zx3jdoD436+GaMCfDZFOXW9xn0DgyB 1RaMTU8DXh99cIMotwkgdaietqC4dE2tF8lDeWpeDKHw66Nxie+NPVYbKbKNggP4hrzg ziBvRKXEvQbFwrN78MAuFyGgDp0imdBknsuu30XP5qEjTWiFa+j0Thcje2r4TD9WkYN5 KCQ5lWRUwktPNDQSTQk8X1IJwwF32Y+TIHryjCGGDvZrcNSCH8A9x51jPHDIQVgwU3ZA BIYQ== X-Gm-Message-State: AHQUAuYqA6tENolvsi0em5U3hEoTezSbFh9UzezQkxPyEmrRsLsdOuPx 39aFai3op9oDzFaE3TPGCOA= X-Received: by 2002:a17:902:ca4:: with SMTP id 33mr4585505plt.99.1551175426106; Tue, 26 Feb 2019 02:03:46 -0800 (PST) Received: from localhost.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id y6sm12045520pfy.87.2019.02.26.02.03.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Feb 2019 02:03:45 -0800 (PST) From: Yuyang Du To: peterz@infradead.org, mingo@kernel.org Cc: linux-kernel@vger.kernel.org, Yuyang Du Subject: [PATCH 4/8] locking/lockdep: Remove useless conditional macro Date: Tue, 26 Feb 2019 18:03:23 +0800 Message-Id: <20190226100327.19340-5-duyuyang@gmail.com> X-Mailer: git-send-email 2.17.2 (Apple Git-113) In-Reply-To: <20190226100327.19340-1-duyuyang@gmail.com> References: <20190226100327.19340-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 8b8495e..0610c0b 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -1331,7 +1331,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 @@ -1709,7 +1709,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) @@ -2363,7 +2363,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