Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2165410imm; Tue, 2 Oct 2018 22:42:07 -0700 (PDT) X-Google-Smtp-Source: ACcGV60/Wwb8vsVEev4uPt1A4YJt919+/e+cAzHALHwfAmgzmVtAMzgrzQ7O2FHe1KYNV/FjD+gv X-Received: by 2002:a63:d30c:: with SMTP id b12-v6mr17233114pgg.61.1538545326986; Tue, 02 Oct 2018 22:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538545326; cv=none; d=google.com; s=arc-20160816; b=MQStsbjYDReZVfgupl2rSUCjdrSJRB3ridiE9/a3W71eltMYtYnFhNXb9xQkT1Fegf 9DnhWWqUw92gBa7sQvCu/ktb5p6W4KGamp1ozF1pafQ4bUOHQyzEuyl99+1ZXbwUuDfc euZr3V/ZJBPH25ewDtRPLod6U4/odD+XqFuNMgpoPtjCn+gnpOQBb4M+xjzzKeSt1KZF u6u8BT+Fgia1TKWqAf46I95+FzRgPXR3QSgLzrs/CDTWb6XYJl/kz6yQJb3rzb78PAFE B3j5x/rjz+O+WWG/H38Eo9SuTURWhKS6W8KZ7I+flJlH9tHMuXY7R12mYzC22r+/X6HM vSjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :reply-to:references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Xfi1R2cm3rkIbhnYY15SS5fOYwTT3sOPSczrOQ5wKy0=; b=t2flesj7LOufL3n/YFZD/pIRDDEn/z+OHZIqDFX7QgCPz8AYOO1kRl8mFsjsV8Fl2N BdQaB0vJb0d7csLhJNjASI0pOOcfWJzaNZAyWj0pcHO2T6OPJ+tn/gc8xJvEsK3JSEGp fAzXKTDV4mWuZRxgFDdddyXD8W6TzMxbPi9h8ud4fhY5n6WyMAB4QIt+JbMZWPEsIhCi CcCX3oCbBr4IB4p/6eNWYnPVLdUZbeOrpxXwqKMGpyUmwPPIGBFh2NA3us0we7aqqTVb JfhFZDYL6XyLkjP1o+Eu3DOGvHK2yXdcueJIe8iMWCAEs2+hQSM5JTnLT9K643v0XJMI EHcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Fcza3/Cw"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g70-v6si445986pfe.4.2018.10.02.22.41.52; Tue, 02 Oct 2018 22:42:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Fcza3/Cw"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727298AbeJCM0y (ORCPT + 99 others); Wed, 3 Oct 2018 08:26:54 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39541 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727264AbeJCM0x (ORCPT ); Wed, 3 Oct 2018 08:26:53 -0400 Received: by mail-pf1-f196.google.com with SMTP id c25-v6so789989pfe.6; Tue, 02 Oct 2018 22:40:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=Xfi1R2cm3rkIbhnYY15SS5fOYwTT3sOPSczrOQ5wKy0=; b=Fcza3/CwMkA9os0+ZRU9M97piAKH8FLoaKOxCLGcUj+/oB6VABQfGNTNMf3chHY1QE 45S1OWHVUR+P3D1s7Q8ZvN5eCGRYK5sVuIHy9UEg4KitBvZcxTyaarOW3IqmOlyVciv0 4JdY8YV+oIBOG8qebyNPz/lWOf+pon/LHDRBHUmCnt7VenZwDs4GN+AhpP9eT/HMIeDM P6oJDOpoelDnJMbjplPOHkqhB7NxZeyreIzNDZg8qeScva2KsTHQbcg72IJ+Zl7vDwsj k7HArV8AV1NNxiOZH8ogBKsxzv2rGISdLXSnxKTUznXquBo1Ifw3ifVS1QFYLlCG0+5j hj8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=Xfi1R2cm3rkIbhnYY15SS5fOYwTT3sOPSczrOQ5wKy0=; b=rlqfpVEQHEWOaGR3ht4qGL/aN5gXWU6rqL4NlVOCovAjcnC407G0sCdlF4B/Yu6Knf YiLTJY47w3JCiIH8B71DopOpAhbwz86a30tXsNdKUKJURqV4P3Yv05GFSyWAiMrnT8CX 4ogEMUc5pPxq/btEKC4EInyHgjuaTOrpxJk0Cere5D0Jxnn3Mz9UM79BFO67Rqw3pCKc nTeUp41p7IDTVFkjENGmNUT9umA5HgaPpcuWBF09arLmrGYP56y8nBKPwOnQ0R2RdhvN Kv4A7GgL9X6Lmeh2hqpqZENd83AYh7r9hW8Mw49f4w/aYMBDuF3inIe2Q2KXCatw2R0V xSvA== X-Gm-Message-State: ABuFfogIOvOgpUA9eoOu7RuK9hqwiERRav2IKvGQalQdknuWnT17PSgD kl9jPwmTPxXjdr+4Dl3GV9Q= X-Received: by 2002:a63:b709:: with SMTP id t9-v6mr8580557pgf.366.1538545202720; Tue, 02 Oct 2018 22:40:02 -0700 (PDT) Received: from E570.localdomain (c-24-21-68-121.hsd1.or.comcast.net. [24.21.68.121]) by smtp.gmail.com with ESMTPSA id h19-v6sm711320pfk.71.2018.10.02.22.40.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Oct 2018 22:40:02 -0700 (PDT) Received: by E570.localdomain (Postfix, from userid 1000) id 790A11643D0; Tue, 2 Oct 2018 22:40:01 -0700 (PDT) From: Lance Roy To: linux-kernel@vger.kernel.org Cc: "Paul E. McKenney" , Lance Roy , Daniel Drake , Ulrich Kunitz , Kalle Valo , "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 08/16] wireless: Replace spin_is_locked() with lockdep Date: Tue, 2 Oct 2018 22:38:54 -0700 Message-Id: <20181003053902.6910-9-ldr709@gmail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181003053902.6910-1-ldr709@gmail.com> References: <20181003053902.6910-1-ldr709@gmail.com> Reply-To: Lance Roy MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org lockdep_assert_held() is better suited to checking locking requirements, since it won't get confused when someone else holds the lock. This is also a step towards possibly removing spin_is_locked(). Signed-off-by: Lance Roy Cc: Daniel Drake Cc: Ulrich Kunitz Cc: Kalle Valo Cc: "David S. Miller" Cc: Cc: --- drivers/net/wireless/zydas/zd1211rw/zd_mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/zydas/zd1211rw/zd_mac.c b/drivers/net/wireless/zydas/zd1211rw/zd_mac.c index 1f6d9f357e57..9ccd780695f0 100644 --- a/drivers/net/wireless/zydas/zd1211rw/zd_mac.c +++ b/drivers/net/wireless/zydas/zd1211rw/zd_mac.c @@ -235,7 +235,7 @@ void zd_mac_clear(struct zd_mac *mac) { flush_workqueue(zd_workqueue); zd_chip_clear(&mac->chip); - ZD_ASSERT(!spin_is_locked(&mac->lock)); + lockdep_assert_held(&mac->lock); ZD_MEMCLEAR(mac, sizeof(struct zd_mac)); } -- 2.19.0