Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp406369yba; Wed, 24 Apr 2019 03:25:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzczSDYA74zbWZdt9qJShBgEiYbmJ3UFcMULZnH0JRBeIn96xj6cUROCuAHwDpQoQA6MvCN X-Received: by 2002:a63:1364:: with SMTP id 36mr25135980pgt.436.1556101520084; Wed, 24 Apr 2019 03:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556101520; cv=none; d=google.com; s=arc-20160816; b=qlH/sEFyhc/YQIMoByn1BwuthY6N9UlctnwALJO8IA5VF5EELxtmUdg8BOfDEWFsOB c5loTg6SH3BYzB1j/80/3E+8QZMrbW2x5yUeQNEkK5YSsG/xSi8IbeEGskLaaNAZA7W/ pq1osNQIxcZ4bUe7x3TGMRYr3y+qJ+qiOI8pb0msbJHr9VhtsXXBfdnAOVgqhR/VFtde X6E/AaZ9xweTl70ruaq6IFo0fJzwcB96hXC3dFn2pYhMWAUQ0wycaVlXYWUcgOzpUyLB lRVG8azHR3z4hIMsRX5E3eW0QAXF06Fsfcyj+pfHrVwBNetb7LHwdcva2lmPH4A8lkPb n8fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lw0o9j9VIAN1GrG4IFYyY9YZcauz4Vi1nMZzr+KIlp0=; b=uvDoXWmzcvwM34+GmtE8oOF17H4DvDSjtf4+CKWY5Leqaa6Um5+QR+SNSJDfShyA3g ATG+Dknus5MO8F4CaaQ1CtcHAN/rBS5dJMsI3mvwsmp9TV9VloUodReJ5Nq9hItR2hP5 C4GlISPt08jUQqzbEHtA+OUmuMK0CvZlc6pbZz2UXGMN8j9UiCBUIMcyOO7f47WRuSLL l88/zOgErk/IMwHXQbeSNYyv8l2q+bcHytdL9dd9b1zXuLxiXaf3GBO8jzI90B5677qF nfZAge2B6v/U2diCW86Dea5Ok0Q/u0jrgxHL0xsxLJbYsGwxoi0f8Uiej9xit0tpqm4z WT1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=trrMIzR6; 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 q1si18488981pfh.125.2019.04.24.03.25.04; Wed, 24 Apr 2019 03:25:20 -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=trrMIzR6; 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 S1729095AbfDXKUm (ORCPT + 99 others); Wed, 24 Apr 2019 06:20:42 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:34624 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727416AbfDXKUl (ORCPT ); Wed, 24 Apr 2019 06:20:41 -0400 Received: by mail-pg1-f194.google.com with SMTP id v12so9178960pgq.1 for ; Wed, 24 Apr 2019 03:20:40 -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 :mime-version:content-transfer-encoding; bh=lw0o9j9VIAN1GrG4IFYyY9YZcauz4Vi1nMZzr+KIlp0=; b=trrMIzR6ygBF8Kkv4Dcn8SX7mnZZVwQtZqgGIoqwkpWifusVXUMSkqUEE3TtYbMmqN n4apmq5qM7ixcscxHjT5AtU1LAniyDusQmcGvygcJfKlLWfOJnWHi+Dt8JB3UExgMqVj 2o1wo/XnPgqnDFMSTZEZjqv+lvaIYoBwdMsbt/yrA0mUKG6fl7L2rPd3oYkzsiPN0IaW 6hlxtLuk47tzwOFGv9TVUnchxLGYcXDU2m3CKEunUu869aq5ZesrUgIylzjA1XBow+5p cL4/jzxZ5CZhif0956EyJ4YH74Ex3ts9d7f6Le51ySMKwBYteWs5YfjTKsrdic9Ioa2s YiVg== 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:mime-version:content-transfer-encoding; bh=lw0o9j9VIAN1GrG4IFYyY9YZcauz4Vi1nMZzr+KIlp0=; b=P+/e34ghCwEv+3FfSC84sF/CSc9bDYfx3GPxOrHE1VH4u8qgE10PZyRq6nP0VVU1oh bZUDxjvPTC+ZbgcsCmr0SQDz6CwhSliYnB5CsNLTkEKCu9cSl8S5vttiiAfmVtLHbYMx H+seXpcT2Gx4iksigRViPgBksrXerr2ONg8gkM/9dkU8g9u8Jn9KCCX4LZRCrW3ykoVd 0tl8Jkdw2Ei7ti1yHgrgV0x7wAToYgTjm1SiXkkGy2L+pfpUdsI8LHJbXE2ePj0r8pi4 FnBxCQ44jm0rndqL5WVbolhxy+urD6h2sJA7x60t0MeDau1o8MvOfM922eWip7MJKVZf f8Rg== X-Gm-Message-State: APjAAAVW6ItFfN/EkAlY5NzRIUAEVuc0X8zNawMqE1iHvlyZ9C/rDWN8 68RATdfyXck23B/k9+7828lW5syxZRLbdA== X-Received: by 2002:a62:a515:: with SMTP id v21mr33079364pfm.41.1556101240414; Wed, 24 Apr 2019 03:20:40 -0700 (PDT) Received: from localhost.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id v19sm25051604pfn.62.2019.04.24.03.20.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 03:20:39 -0700 (PDT) From: Yuyang Du To: peterz@infradead.org, will.deacon@arm.com, mingo@kernel.org Cc: bvanassche@acm.org, ming.lei@redhat.com, frederic@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, Yuyang Du Subject: [PATCH 04/28] locking/lockdep: Remove useless conditional macro Date: Wed, 24 Apr 2019 18:19:10 +0800 Message-Id: <20190424101934.51535-5-duyuyang@gmail.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) In-Reply-To: <20190424101934.51535-1-duyuyang@gmail.com> References: <20190424101934.51535-1-duyuyang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 ba0080a..2cc2a15 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -1669,7 +1669,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 @@ -2050,7 +2050,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) @@ -2723,7 +2723,7 @@ static inline int validate_chain(struct task_struct *curr, static void print_lock_trace(struct lock_trace *trace, unsigned int spaces) { } -#endif +#endif /* CONFIG_PROVE_LOCKING */ /* * We are building curr_chain_key incrementally, so double-check -- 1.8.3.1