Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2200965yba; Mon, 6 May 2019 01:21:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxEwK5sgloXPwOLxQK/ZAdyhLe3pD8ZU2rPtVMbti9YtAMKGaBk1nZIk17RlcYaP/ellD8K X-Received: by 2002:a63:7d03:: with SMTP id y3mr29623825pgc.8.1557130883019; Mon, 06 May 2019 01:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557130883; cv=none; d=google.com; s=arc-20160816; b=fWsvywS+/s4BAtLL9wDFyAffL/Uk84paHa74ciMQEJrCdXto2QGCM1nnpN4vtKiAk8 3VC9Y9C2be634/ok0L9X1l2HD9mGqS51n/bevSx+4w/LBL598M4ZYMgS6YYfkhDW4Xi3 7w7Qc8Ec81TBEaeRO94OMoxbN0v4V2UqFu77h7YB+ES72cHyCKD0TUiSu0tGLpsAu32V QxxBdDFFEZ/xpCeYnujhm4T3DUD5LFhraaN7OsW0TEkI3t1CQuGA3dYGSOysSf9usIVO DElxQqBgdwhmTbBCoDr5Y7PZDdReuq+xRBfaK+RC9zYOxQlpHfpkc5uxeIbe0AY5mR2b lczg== 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=BUGgnBE5twSTtjE0GGP0JI8EGLp+1ZG15lAdVhxxXbA=; b=lxUn6/tlh5rS19HAlFZPfQ60wWiSv4waBgV0ZFXT6/nPlGoVLohPCl2S+zx0nM0888 97I7FfY0nCUWz9qMpu6znCVKeudHCpTk8lU7Gl3ndk+gXquL2cNi+7WtsraDQFbGBtzw NCh+QjmLhmuJPOmx1auu9tgu6AcSO43VEgjXQ+ts6sDYNtON1vVzFX0RGaAyiY85qKr/ r7EXxhnF/IIASwdF2jHAbXfG1pB2GdVMwuQRXSNOJskjjLRNo+Ea8FpRFwhfXVlaEymF yJT1aHaz+FOIO23u1IlSygKucyrfrHSV1WUpXZtR63Crh36e0oUvdmb+5enKnpUFJNBy UpfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NiDkS4zw; 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 g69si13535092pgc.408.2019.05.06.01.21.07; Mon, 06 May 2019 01:21:22 -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=NiDkS4zw; 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 S1726426AbfEFIUD (ORCPT + 99 others); Mon, 6 May 2019 04:20:03 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45539 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726412AbfEFIUD (ORCPT ); Mon, 6 May 2019 04:20:03 -0400 Received: by mail-pf1-f195.google.com with SMTP id e24so6334745pfi.12 for ; Mon, 06 May 2019 01:20:02 -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=BUGgnBE5twSTtjE0GGP0JI8EGLp+1ZG15lAdVhxxXbA=; b=NiDkS4zwWSm38mORkyBURO587JKzxrsID9Zdpb2iq52x87ENYYubMyr4XHTCAHHdKe 4F1Hh/N4kEMEnzK4B6WLLEft2XkkZPbZi3nYNU269uMoI2Zw7fGQuGQI///0bWewEs/J LEvOhx4bKGY7Jcaz8eg+AD5/MNjYUWXLxgxDPtQNXgG8peY9EhRG2JWbE3zuNWpMYCDI zDHm8wSZZuw5jt6h7uwzy8U9dPmyWMkTse+ieN98e3MBJ9pOmg9fVuamEpweZ99xIG7f wVP1Ax2p3ZlJS/qO1NP8EHUso2ssY6bPxwR0SvdX6moR/jZbBd7aMbdsSEsWKKrxlC/r SuIA== 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=BUGgnBE5twSTtjE0GGP0JI8EGLp+1ZG15lAdVhxxXbA=; b=BSTk6R1FFNDip5UDbRxEfrOSBTNqTKW+aNzsDfFRMbslhiWu18h0OAG22wieik/7pJ bOxEUULqvgAVfVbM7ZzTPndbBBwzc3unWzwV0iohYAYNIDstm4c0pckwJoGGqpKVV3dm wKRpq+vXeVbLJV93QbWi3J8kUjLHWXaDqF7BsC/QhB1uS4+t1QAOCL3qqQnqTRA++Uco dHJSBHXbVHtEYpqe2I0JDyISQfjCJEtYeTc77J7HcgNrKrL4iKcOFd9ny5UZCUpTasC4 +H7/vWrdLPBuaBbx3Q7YEEDSMGHJtz3/4dYgLXCpJzrre32JSUiUvdwU3TzGMsw292fP g/1w== X-Gm-Message-State: APjAAAX4zzUPIqtZhLNFOlrQa7TgjzBxzQasSqHKlRPlepW2lUK+B4gg ZasVo/jek9yIqleJXzCmkj0= X-Received: by 2002:a63:1354:: with SMTP id 20mr13391683pgt.356.1557130802143; Mon, 06 May 2019 01:20:02 -0700 (PDT) Received: from localhost.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id v19sm20958013pfa.138.2019.05.06.01.19.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 01:20:01 -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 v2 04/23] locking/lockdep: Remove useless conditional macro Date: Mon, 6 May 2019 16:19:20 +0800 Message-Id: <20190506081939.74287-5-duyuyang@gmail.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) In-Reply-To: <20190506081939.74287-1-duyuyang@gmail.com> References: <20190506081939.74287-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 720d195..a0837a0 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) +#ifdef CONFIG_TRACE_IRQFLAGS static inline int usage_accumulate(struct lock_list *entry, void *mask) { @@ -2147,7 +2147,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) @@ -2828,7 +2828,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