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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86CA6C433E0 for ; Sun, 14 Feb 2021 17:53:22 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 30D1364DCF for ; Sun, 14 Feb 2021 17:53:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 30D1364DCF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=ath10k-bounces+ath10k=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=h3COodG/CvJzO11JGsLK4Hm7CTsYEYJ4NgnZfmn2eUc=; b=eJ03QWhSZzJHIA4Qtg8cQUCkZ oQ0L7CYdd8jKfWLOSoRTfwxiNijdR+2ZdauHsM/D6Cxbmlnb7zVPkEwMNsmeBMUBSY6kUMhpFKQSy KJgWEleG+p1aimnWNUTs3cRIpgokdJr0ooKef3YWqhJ9G/SUbMsRiPcv8bZUM+kii3u/F9mZ78Iyo DkUa+zCUgh1YBWvTLpCGbiRvEt56H4gOOAh8tE1oIJVV3SLhQxdDNvvpTLQGetZFjDflPpU2UMAPB cRimzsIUV6EPZFj9V11Fv5vQ5+M0LYHC8YGAw0EFE64ASDvrGsVEx6I6bA50/jy44HyRh1Ojxtc3Q CdQnn1PVQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBLZz-0005nG-Vn; Sun, 14 Feb 2021 17:53:08 +0000 Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBLZx-0005mj-TD; Sun, 14 Feb 2021 17:53:06 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 5E7E13019CE; Sun, 14 Feb 2021 18:53:01 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 2E40320299B4B; Sun, 14 Feb 2021 18:53:01 +0100 (CET) Date: Sun, 14 Feb 2021 18:53:01 +0100 From: Peter Zijlstra To: Shuah Khan Subject: Re: [PATCH 1/2] lockdep: add lockdep_assert_not_held() Message-ID: References: <37a29c383bff2fb1605241ee6c7c9be3784fb3c6.1613171185.git.skhan@linuxfoundation.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <37a29c383bff2fb1605241ee6c7c9be3784fb3c6.1613171185.git.skhan@linuxfoundation.org> X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, ath10k@lists.infradead.org, mingo@redhat.com, kuba@kernel.org, will@kernel.org, davem@davemloft.net, kvalo@codeaurora.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath10k" Errors-To: ath10k-bounces+ath10k=archiver.kernel.org@lists.infradead.org On Fri, Feb 12, 2021 at 04:28:42PM -0700, Shuah Khan wrote: > +#define lockdep_assert_not_held(l) do { \ > + WARN_ON(debug_locks && lockdep_is_held(l)); \ > + } while (0) > + This thing isn't as straight forward as you might think, but it'll mostly work. Notably this thing will misfire when lockdep_off() is employed. It certainyl needs a comment to explain the subtleties. _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k