Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2201101yba; Mon, 6 May 2019 01:21:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEdl09C7CVVdwTnZS4w34gSjBR3IzauMVAmKF1rUPLL7sLAXdfO1qaIFew5p7v1EKIIsev X-Received: by 2002:a62:1a51:: with SMTP id a78mr22542762pfa.133.1557130898254; Mon, 06 May 2019 01:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557130898; cv=none; d=google.com; s=arc-20160816; b=GuDBuI7ola/BKLcign+ADlNr/Afu6DVp/GiLN3D8TRgOzI93fqGxjbv6wEUAYKYF9/ XDn/ERrnXIjHfHZ0LDm5k5EG37TBNQWglYv4oZgba5WSO/6t+H0Q3BFxVn+7gOjpPlfs jxKWvbQg2F/yQBmsRovSBwn852PkPw48wxcZ5lJzMmHXfB2Oc5fCuejbuE2sLHiVvnUO 5Kqvx98923heejm4V3I1yxlUTxSzC3+s/a9sb04aNcnNV3U6teIzzKRP8tS68WnZaoCh DeurX+GWuZps2gqo+ePQjKM0OmxjcvZCAgWKqrmXb9ZJVHOABRHz9gP4lmDNGYe6TKsp shBA== 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=0kfhy/vws18rZpDHDaPIfYHeGOwGyfC2bZ5+sCfkbgA=; b=Tnki/KNXnIi68LtvpuK34JHLOETcVNBjyu6SuGl8G0lL8kaUFssbuGLXUNZLIWOwCq 5z7E5sLK1EZwPU4M6Utis6/iZphATvh2Pos5k/SVJ/tUgSsxbgjpwHYYekvaOPubL4+G 2XnIRw19XNOizFUODCMv3pivYD82Dit3ZU5FS7sb769VbOsD4i5wg6zjFexPcCK+61WQ cFbYCOs34WdRb1N6zmuC8h7PoNjTjIdbia8JML+kIV5C7j4k94CduB9LMlQCrVt2DDjN FwMUyV3P8ddfPC5ABtiSyYR5W6IRIwkWG1IXI4I1w/EU2FFYZiq/7PDtUCXIQg8YwOJc eMfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aiPslvaW; 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 l11si12815931pgi.194.2019.05.06.01.21.23; Mon, 06 May 2019 01:21:38 -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=aiPslvaW; 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 S1726466AbfEFIUL (ORCPT + 99 others); Mon, 6 May 2019 04:20:11 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:36591 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726197AbfEFIUI (ORCPT ); Mon, 6 May 2019 04:20:08 -0400 Received: by mail-pg1-f196.google.com with SMTP id 85so6096459pgc.3 for ; Mon, 06 May 2019 01:20:08 -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=0kfhy/vws18rZpDHDaPIfYHeGOwGyfC2bZ5+sCfkbgA=; b=aiPslvaWZSe2jEqAf1nS35euQvnz1CFpNDxLJmXCE4CmuJwQvFyYLMJZA2pbQ2pc7s 9GgOzeYxcdYMYZzOnyIwNUx9PwOSmmRQkwrs9PNoxpY8QXWxYa++RQVYP0C3GbEWTNES CSHTdv8gcbW30QvOBTCHkLJ9StxbWDS3kX3FJNnBXOE+ZWh2BwNkDarBV3vXLRksOgKL LH7O7d0zpVa0tgEpp2SjnY1fYnUttt0GHWbtfK0OH+JtRVShnkhaNs4A8XVLL0Lfrd29 lrv233TqUHpCeV7c9uOpjCA9KQrkSanx/EU0JyqeUI+/Gg4Aix6T3s0ZQ709qmtM1ywb Zveg== 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=0kfhy/vws18rZpDHDaPIfYHeGOwGyfC2bZ5+sCfkbgA=; b=XlCfaD7ViwH7wfFnTgi4oA8cb0hPJTzB2KGSWoRkLD5qUTJW8FLycDqAuF7bHY9oM8 nsk3qY6TlbplL/5WJsw/pcOFchhtzvJKIapNCYpp7H5+uzWdrI+0nLtf+Y9d61XZLOpf CDaend2MvIwVQwwszxs70O/bxrMc6WtuZPcnSgLNWrFsHS4SjZeSw5hcnxh6l9q5Xr4l AYHc8k6lxHt2+abk62H7fbKnpRFUuD3L0jNyMPSZdSS9IlXiQzDvqFk+eww+4G7GmTle PEoVIAF7yigDrl0l01FZuAcUBWi94h+taGK2RzsAUt/VK0kNCES6Zn+6YZiJ5Qdtfcuc pJgw== X-Gm-Message-State: APjAAAXTr8kd5P2DaSzl1+cQEEPW9ryymXC2RLLzAhc6WWqgH8h+852p i7y201Tcd6Oo00//kxTrCmrdj+yz75yPwA== X-Received: by 2002:a63:de11:: with SMTP id f17mr29706720pgg.94.1557130808373; Mon, 06 May 2019 01:20:08 -0700 (PDT) Received: from localhost.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id v19sm20958013pfa.138.2019.05.06.01.20.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 01:20:07 -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 06/23] locking/lockdep: Update obsolete struct field description Date: Mon, 6 May 2019 16:19:22 +0800 Message-Id: <20190506081939.74287-7-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 The lock_chain struct definition has outdated comment, update it and add struct member description. Signed-off-by: Yuyang Du --- include/linux/lockdep.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 6e2377e..851d44f 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h @@ -203,11 +203,17 @@ struct lock_list { struct lock_list *parent; }; -/* - * We record lock dependency chains, so that we can cache them: +/** + * struct lock_chain - lock dependency chain record + * + * @irq_context: the same as irq_context in held_lock below + * @depth: the number of held locks in this chain + * @base: the index in chain_hlocks for this chain + * @entry: the collided lock chains in lock_chain hash list + * @chain_key: the hash key of this lock_chain */ struct lock_chain { - /* see BUILD_BUG_ON()s in lookup_chain_cache() */ + /* see BUILD_BUG_ON()s in add_chain_cache() */ unsigned int irq_context : 2, depth : 6, base : 24; -- 1.8.3.1