Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2188662rwb; Mon, 7 Nov 2022 10:10:16 -0800 (PST) X-Google-Smtp-Source: AMsMyM5eqJPP1FSYr5M+65a1EEVHrhK0WGQHw5voNifNQV/Aiwfm3pAGveri88YpfLbaUxe3WBla X-Received: by 2002:a17:906:4a45:b0:7ad:d0e3:1f59 with SMTP id a5-20020a1709064a4500b007add0e31f59mr800994ejv.714.1667844616584; Mon, 07 Nov 2022 10:10:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667844616; cv=none; d=google.com; s=arc-20160816; b=NGDShlC2T4PXYg3aZf43mmMfObSMVUHdgtp0eGy9DHxdNQNjmUDbBSe1sEDjnCeMT2 ywuXCv2YUHwPC6sekK6z7ED9xDkgqRWmmxbmHw1qw+RqyczFvoJB6QVl3GyX+0g+PvqI 9eguxG6KCpu5bMeke6rBa8UjHtM87ezNYav3f3JAqBB5Uv9UxrWVzkJmWjvlX+E1v230 zZmnn27ECkKskHVQgmpMSbCEmnnTNsCC3xOewFzkMcjP2PIjiGi22P2DVKVF/Ood+l9f sR2rdVkoUOWwEJ7Tjj4erDqKCVaF6OHAnRMJ44IhUqbQO4hxtuzmez7uY7TK4o0dnJcZ KTlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=dhpuCBUBpU4qJYa8F9t4dSuGynbdtFKZywuwIOjZMIA=; b=u88LbN2Ddj4LjfbGScDDC7JflH247Pm5BMexC78uLbuzMMj/9IlawSTEiiq7jY6Kag B8+qlx6FAgyB3W0T6vfjoybaoC29rSQvUSlWmKTIf9YOWhs3/JH6ddmhPss7AvFR/WqG U0a4XJQYtwaUrfJoMhsajcgriSmMcMSqcgtcZl2ldUO9tSvoh7DcEhW1I7stq5K/AC+t QwBeEt48o8FQGf5DJpR+2kkUZUPOGp4XcHgj+cbJON1EtFnTgfxQ2j682IsvTl74RkOx DOtha3yeicx2kYFfsthxFy1ivzFzgayk0otoX9GXn7C46I6KAHEa0XKZTpKg0EQKLRbs FM9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IoF4JUcn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z10-20020a05640235ca00b0045ce40540ebsi11765877edc.269.2022.11.07.10.09.54; Mon, 07 Nov 2022 10:10:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IoF4JUcn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233053AbiKGSFe (ORCPT + 92 others); Mon, 7 Nov 2022 13:05:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232270AbiKGSFE (ORCPT ); Mon, 7 Nov 2022 13:05:04 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFC2224968; Mon, 7 Nov 2022 10:02: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 dfw.source.kernel.org (Postfix) with ESMTPS id 49099611BD; Mon, 7 Nov 2022 18:02:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96654C433C1; Mon, 7 Nov 2022 18:01:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667844119; bh=aR8pMC8ZTAkBjOgsSkUFawwVBw1I28GB4Ej9Sis/Em0=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=IoF4JUcn8BXIWZtIcHbwIPEbyZCeTDgFaJBWhx/0bY1Uj4lAtCjyKL0GtT/JSahmB UXxwwfIms6UFN0Lbq0AfY8hOxv+1+0O99BZ3YTiY/AOaRUEyuwJwrHmnxQXua6X3SU EoQuIIXu0TAyTVrg1M4N7PkkZNq9nMMW953BFq0ywmSPBEHWH0EPjXTTLoW0BIfpvq vX65U0tBh89bIu/2SoISDqknwx3vz8EA4eQzSaqCote/6/qAM/ApsdAyhZHIBox28J TD1VbJfyO7C67DAnXJePYFJX2f/LK9dJKLOMb5zRWTTaLyTtMR/tPG+krJq55Q4bG6 ityDzBE9yaYcw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id CFB085C095F; Mon, 7 Nov 2022 10:01:57 -0800 (PST) Date: Mon, 7 Nov 2022 10:01:57 -0800 From: "Paul E. McKenney" To: John Ogness Cc: Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Frederic Weisbecker , Neeraj Upadhyay , Josh Triplett , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , rcu@vger.kernel.org Subject: Re: [PATCH printk v3 01/40] rcu: implement lockdep_rcu_enabled for !CONFIG_DEBUG_LOCK_ALLOC Message-ID: <20221107180157.GL28461@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20221107141638.3790965-1-john.ogness@linutronix.de> <20221107141638.3790965-2-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221107141638.3790965-2-john.ogness@linutronix.de> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 07, 2022 at 03:21:59PM +0106, John Ogness wrote: > Provide an implementation for debug_lockdep_rcu_enabled() when > CONFIG_DEBUG_LOCK_ALLOC is not enabled. This allows code to check > if rcu lockdep debugging is available without needing an extra > check if CONFIG_DEBUG_LOCK_ALLOC is enabled. > > Signed-off-by: John Ogness If you would like me to take this one, please let me know. Otherwise: Acked-by: Paul E. McKenney > --- > I also sent this patch to Paul as a suggestion. If it is not > acceptable, I just need to add an ifdef CONFIG_DEBUG_LOCK_ALLOC > into console_list_lock() of patch 21. > > include/linux/rcupdate.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h > index 08605ce7379d..65178c40ab6f 100644 > --- a/include/linux/rcupdate.h > +++ b/include/linux/rcupdate.h > @@ -340,6 +340,11 @@ static inline int rcu_read_lock_any_held(void) > return !preemptible(); > } > > +static inline int debug_lockdep_rcu_enabled(void) > +{ > + return 0; > +} > + > #endif /* #else #ifdef CONFIG_DEBUG_LOCK_ALLOC */ > > #ifdef CONFIG_PROVE_RCU > -- > 2.30.2 >