From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D5C0C4332F for ; Tue, 8 Feb 2022 22:34:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387235AbiBHWa7 (ORCPT ); Tue, 8 Feb 2022 17:30:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386911AbiBHVUC (ORCPT ); Tue, 8 Feb 2022 16:20:02 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 317B5C0612B8 for ; Tue, 8 Feb 2022 13:20:00 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5F014B81D94 for ; Tue, 8 Feb 2022 21:19:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEB4FC004E1; Tue, 8 Feb 2022 21:19:56 +0000 (UTC) Date: Tue, 8 Feb 2022 16:19:54 -0500 From: Steven Rostedt To: Namhyung Kim Cc: Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , LKML , Thomas Gleixner , Byungchul Park , Mathieu Desnoyers , Radoslaw Burny , "Paul E. McKenney" Subject: Re: [PATCH 03/12] timer: Protect lockdep functions with #ifdef Message-ID: <20220208161954.4adde540@gandalf.local.home> In-Reply-To: References: <20220208184208.79303-1-namhyung@kernel.org> <20220208184208.79303-4-namhyung@kernel.org> <20220208143641.7850bbc6@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 8 Feb 2022 12:29:32 -0800 Namhyung Kim wrote: > Hi Steve, > > On Tue, Feb 8, 2022 at 11:36 AM Steven Rostedt wrote: > > > > On Tue, 8 Feb 2022 10:41:59 -0800 > > Namhyung Kim wrote: > > > > > With upcoming lock tracepoints config, it'd define some of lockdep > > > functions without enabling CONFIG_LOCKDEP actually. The existing code > > > assumes those functions will be removed by the preprocessor but it's > > > not the case anymore. Let's protect the code with #ifdef's explicitly. > > > > I wonder if it would be cleaner to have another macro name for these > > locations to keep out the ugly #ifdef in the code. > > > > lockdep_init_map_raw() ? > > Yeah, I like that.. Then I also need to add the _raw variants > for acquire, release and so on. Is that ok? > Yeah, most definitely. Thanks, -- Steve