Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751687AbdHQIMb (ORCPT ); Thu, 17 Aug 2017 04:12:31 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:35487 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750775AbdHQIM2 (ORCPT ); Thu, 17 Aug 2017 04:12:28 -0400 Date: Thu, 17 Aug 2017 10:12:24 +0200 From: Ingo Molnar To: Boqun Feng Cc: Byungchul Park , Thomas Gleixner , peterz@infradead.org, walken@google.com, kirill@shutemov.name, linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, willy@infradead.org, npiggin@gmail.com, kernel-team@lge.com Subject: Re: [PATCH v8 00/14] lockdep: Implement crossrelease feature Message-ID: <20170817081224.yp3qhqt6vijzvvpz@gmail.com> References: <1502089981-21272-1-git-send-email-byungchul.park@lge.com> <20170815082020.fvfahxwx2zt4ps4i@gmail.com> <20170816001637.GN20323@X58A-UD3R> <20170816035842.p33z5st3rr2gwssh@tardis> <20170817074811.csim2edowld4xvky@gmail.com> <20170817080404.GC11771@tardis> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170817080404.GC11771@tardis> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 630 Lines: 21 * Boqun Feng wrote: > > BTW., I don't think the #ifdef is necessary: lockdep_init_map_crosslock should map > > to nothing when lockdep is disabled, right? > > IIUC, lockdep_init_map_crosslock is only defined when > CONFIG_LOCKDEP_CROSSRELEASE=y, Then lockdep_init_map_crosslock() should be defined in the !LOCKDEP case as well. > [...] moreover, completion::map, which used as > the parameter of lockdep_init_map_crosslock(), is only defined when > CONFIG_LOCKDEP_COMPLETE=y. If the !LOCKDEP wrapper is a CPP macro then it can ignore that parameter just fine, and it won't be built. Thanks, Ingo