Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1544926img; Tue, 19 Mar 2019 09:54:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSLK3FnsDCFOCdrRaB+R3JeWwK8Z5Kantv+DXZgzDIPbci3N+nhiO2ZhXjBDMXJh7WKl2C X-Received: by 2002:a65:5685:: with SMTP id v5mr2930531pgs.365.1553014448738; Tue, 19 Mar 2019 09:54:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553014448; cv=none; d=google.com; s=arc-20160816; b=x5EvZABH1HUoaq04UmAogqAIS3p4UAIAW71fCY+ZGvhTSQ3zNY5yZrABwXZCpoICOY gSeHas3CqTnfPlxIHsgQAiLFxn5aMKnLrUZgKyOaXv1nrz8jfa4z8lfBRzFijdXj2yPG BrtmvPz3mAwRFhM78g91pYRV+f9h/hzPe1uaCtCor4To0Z1XwhVLTpQWrFJTjo+YXs4d ENIleWexFgpYjLtHHB/j1Dy8F/TnYMU9zW14CnQTHlhpAQSvQdGP+FzJxvVVSpB2lAlM /mX7/3n9fEjlt9OCrzCgYxRW7fHCDaWADkkbK7d0ftlL663Jgnzm1DOAR1pHLdu8kFRb m+6Q== 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:date:cc:to:from:subject:message-id; bh=/f64lzHrYZFKV+ReOEeRcDJDyKm3d+6RzF2Rb5xxhB8=; b=k6q861kLVxu0VGEyRr4URu8y2bs81Mxy8YIBVd6OxSKjv/CxZ49iNiDlfW0OA3RGz6 corPXg4BFMAzhKH70x4YwS78XLtY+4NAziZ0ye2P3TOoVoeiTiaGDvenoW/45M55jozb 0TmWXHyBW3V2f3CeywGOHKGHnNMNzRxKEAdEBa3urm86owHj1fEzrDLphcWT/LbKJ44b w1s3OnmNEJgAQXtC098PbWUN/OqwnMt7jv8ahBMK2uGIMBalk/slVEkjf8UXQmzNNzhC B1ngtk2cEhecfPzVWPLv5OimKQkit99iI/jK2S8oH35v0P2AtybPixfBBvSMELMmFYKU GTUw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h23si12438333pgb.516.2019.03.19.09.53.51; Tue, 19 Mar 2019 09:54:08 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727237AbfCSQvt (ORCPT + 99 others); Tue, 19 Mar 2019 12:51:49 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:33054 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbfCSQvs (ORCPT ); Tue, 19 Mar 2019 12:51:48 -0400 Received: by mail-pf1-f193.google.com with SMTP id i19so14122243pfd.0 for ; Tue, 19 Mar 2019 09:51:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=/f64lzHrYZFKV+ReOEeRcDJDyKm3d+6RzF2Rb5xxhB8=; b=o1uK1kgI9X3f3wXslLw59L2lqfIKpZGuyfjosLTvy1W6iI7LL8Q8vGhSznI8AxLK1x GklapWhom9/WcEgyZY+4s7QJGXAcRBZkHDvWsbGC+kDuxOdrHgUoFyEIGTczJ4bbN2wR Jdkk61ntD7PRp/Z+mCow/WdYd2qAo7kkjkHaUFXiI5+j2ByLlgMt/6vLQ0qGE8ADsxRX IYd1+EMx1kGcf6e4NzHNxpnrlfEH3GMvOFtVjqcVYyfWE803BwBRgENQ/RtjBqELbf13 cGqLXvF5yMUS8IJIFKdwWlObX8h2w2VKayFa0UvtLn+CaJLgeW+nh0baSWvatTuBCWUQ wirw== X-Gm-Message-State: APjAAAWAaxxRxcfX1A8FFGb2TI9KvLt0bcIrM2aA2LljEDb28tpNbwwg MdPzvQTSehjquHZgCotKUYo= X-Received: by 2002:aa7:8d17:: with SMTP id j23mr2934173pfe.62.1553014308104; Tue, 19 Mar 2019 09:51:48 -0700 (PDT) Received: from ?IPv6:2620:15c:2cd:203:5cdc:422c:7b28:ebb5? ([2620:15c:2cd:203:5cdc:422c:7b28:ebb5]) by smtp.gmail.com with ESMTPSA id h184sm31697774pfc.78.2019.03.19.09.51.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Mar 2019 09:51:47 -0700 (PDT) Message-ID: <1553014306.65329.7.camel@acm.org> Subject: Re: [PATCH v2 14/19] locking/lockdep: Change type of the element field in circular_queue From: Bart Van Assche To: Yuyang Du , peterz@infradead.org, will.deacon@arm.com, mingo@kernel.org Cc: ming.lei@redhat.com, linux-kernel@vger.kernel.org Date: Tue, 19 Mar 2019 09:51:46 -0700 In-Reply-To: <20190318085733.3143-15-duyuyang@gmail.com> References: <20190318085733.3143-1-duyuyang@gmail.com> <20190318085733.3143-15-duyuyang@gmail.com> Content-Type: text/plain; charset="UTF-7" X-Mailer: Evolution 3.26.2-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-03-18 at 16:57 +-0800, Yuyang Du wrote: +AD4 The element field is an array in struct circular+AF8-queue to keep track of locks +AD4 in the search. Making it the same type as the locks avoids type cast. Also +AD4 fix a typo. BTW, your patch does more than fixing a typo. This patch elaborates the comment above struct circular+AF8-queue. I think the commit message should mention that. Bart.