From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754799Ab0CWPdT (ORCPT ); Tue, 23 Mar 2010 11:33:19 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:39050 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754735Ab0CWPdR convert rfc822-to-8bit (ORCPT ); Tue, 23 Mar 2010 11:33:17 -0400 Subject: Re: [PATCH RFC 00/11] lock monitor: Separate features related to lock From: Peter Zijlstra To: Hitoshi Mitake Cc: Frederic Weisbecker , Ingo Molnar , Jason Baron , Steven Rostedt , Mathieu Desnoyers , linux-kernel@vger.kernel.org, h.mitake@gmail.com, Paul Mackerras , Arnaldo Carvalho de Melo , Jens Axboe In-Reply-To: <4BA4860C.3050001@dcl.info.waseda.ac.jp> References: <1268563128-6486-1-git-send-email-mitake@dcl.info.waseda.ac.jp> <1268590435.9440.8.camel@laptop> <20100317013236.GB5258@nowhere> <20100317095230.GD17146@elte.hu> <4BA1C141.8050409@dcl.info.waseda.ac.jp> <20100318211633.GG5103@nowhere> <4BA4638C.40307@dcl.info.waseda.ac.jp> <4BA4860C.3050001@dcl.info.waseda.ac.jp> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Tue, 23 Mar 2010 16:32:40 +0100 Message-ID: <1269358360.5109.88.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2010-03-20 at 17:23 +0900, Hitoshi Mitake wrote: > In lockdep, held_locks of task_struct are accessed this arithmetical way > prev = curr->held_locks + i; > Of course this is valid way, but I feel it is more simple and natural way > prev = curr->held_locks[i]; > The latter is a type mis-match, an equivalent expression would be: &curr->held_locks[i];