Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1097155ybb; Fri, 10 Apr 2020 17:21:12 -0700 (PDT) X-Google-Smtp-Source: APiQypLU/1BgUf9nWEsF4au4EpRmd1cVYb3+Vs0EyuxujuqRSLNdv0WXHQUf8ggYDwNo5hDnTZn4 X-Received: by 2002:a0c:fb03:: with SMTP id c3mr7143177qvp.155.1586564472701; Fri, 10 Apr 2020 17:21:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586564472; cv=none; d=google.com; s=arc-20160816; b=RykEjevA0k3T2Yd0BojgSynUlf0ZYJc1M3vAUcpRpgyZOMcx152+KmCTOoKz5qCZJ5 UQAOo1IqYdW8evfE/SnHBiWuWvvbZqEyUtN6KQz6RDPr/1D5vTq6MU7bKRkdrp1MNPBr mQH2LMLwPJmrfeKhIeB/baSlYIyhg0PmDH7JQjFzk/Vp2f+T4pkCfzzMzZPczeVrrW8j afzAgfdg0xdP3G8DwzhW+OCMIJXphme3B9E4uOUczQaibXVTIFFOoOu+g2lKDcBxXjVp DWvccqMzz32R7oK1e8YaeTncxEIOye0fjNUD5mFw7SPvde0tYEG+PKYo6lXkQWliGDbH 2pGA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bnsdQ5U1vczReUdSDEyFDyP+NZXKnWhzI4gNW+WqNi8=; b=Fr8Nr3CUiNdHhV5xX0GGK7RYsrW3vxPwA0+47xzgJeGehq7wy+dh0o6h7lAB4epevn mWisuZTigyYGI/LDeM63P3wNaOPPI02y33dq6u3ndj2S13H8WRnJZ2qH6aC9aG8N0dSl 8UHAcw/5S2X1wvE4FR4EVo6fJpYjeaPAy8Ozl5TD7C9QAfP5KW4bGRP1iAU8zwozJrYe bTTnIxLLmQ5zTpKJMh9mMONCIWpXIhkm0OKqHcf3TcT9STPNRZPpXIq0KGTV4oh5qvUU bf1Jjr5UfrnWsWhH7Q3ulz48r3lnicglXnGP6YoFU+8pP6mdzy0OUtw/N2k+5Yy1WMmI 3UPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y4P580LG; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 z13si1923137qve.131.2020.04.10.17.20.40; Fri, 10 Apr 2020 17:21:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=Y4P580LG; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 S1726847AbgDKAUT (ORCPT + 99 others); Fri, 10 Apr 2020 20:20:19 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:37800 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbgDKAUR (ORCPT ); Fri, 10 Apr 2020 20:20:17 -0400 Received: by mail-wm1-f65.google.com with SMTP id z6so4385296wml.2; Fri, 10 Apr 2020 17:20:14 -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 :mime-version:content-transfer-encoding; bh=bnsdQ5U1vczReUdSDEyFDyP+NZXKnWhzI4gNW+WqNi8=; b=Y4P580LG8AOE73qKmST1Ddlv62Xh2B/xEmvDDI7TnWMBIYAgb0We1EJiiTitFQ7XuJ iOnsUBn0VCt4JcfU84GiB7eSPyTdXOLNYo+DEZvom+0aRjTkhl4ofekKMOk6b8/e8LOU 3Syu2KELG0PNf5gGTqPoRmqaMYTka12nijp+jwg8oRyGxnrgxSRE7pngHjzfDUUzLao7 nDTj73suFFI+YSHA2HOd5SItkBr9miR3s9NIaItMOPBwJAPjmuC8E/cpKiyxDLqev7JT 45yoPK7F8KLtMGSUNDDppOSOEKe7raEHcq2ZG//QO7VpmCudSZUXqouMkH5QCr3fB0hB sZsQ== 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:mime-version:content-transfer-encoding; bh=bnsdQ5U1vczReUdSDEyFDyP+NZXKnWhzI4gNW+WqNi8=; b=POtOzAC8EXLPD+ihwvx1uMl9J6muC1AIMnpzrOjkI/LNMZD/jqWnZ37ketDkif7bdP rGrhs9SokNkFWikIfZrTP0RcD681Iko2cUG6x4erQe19tGm0LGH+SFnpF+gAEBmIgRXw ynbAiNiJ99ERtAO19wcKl0yLky9+VlHzQAnXKDY+iLqYy6ANIvzXuLaWxsybVWV5Pnxy UbIoCwhMYmtOUCBiYhk4bXnBamfOYp6/R5cbdBLLa+UbCO57IOjgSAnDsr1M9oiFi7Ft egoxNHSVbqXrZcDTQC6GQTMbKevaVNRftkB5NYGyY+YdgDSPYvlZpHRF+nYBLs0d+57H wCjA== X-Gm-Message-State: AGi0PuZ1AgcE+jgQ7UEMt8hGNcrqBrvr1wFXBETDrDFuNS92krDPuC/K KZZQv/TnqgC4VcMtW8gyQUHiCCPOu5g9 X-Received: by 2002:a1c:f409:: with SMTP id z9mr7850215wma.51.1586564414006; Fri, 10 Apr 2020 17:20:14 -0700 (PDT) Received: from ninjahost.lan (host-2-102-14-153.as13285.net. [2.102.14.153]) by smtp.gmail.com with ESMTPSA id b191sm5091594wmd.39.2020.04.10.17.20.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Apr 2020 17:20:13 -0700 (PDT) From: Jules Irenge To: linux-kernel@vger.kernel.org Cc: boqun.feng@gmail.com, Arend van Spriel , Franky Lin , Hante Meuleman , Chi-Hsien Lin , Wright Feng , Kalle Valo , "David S. Miller" , Johannes Berg , linux-wireless@vger.kernel.org (open list:BROADCOM BRCM80211 IEEE802.11n WIRELESS DRIVER), brcm80211-dev-list.pdl@broadcom.com (open list:BROADCOM BRCM80211 IEEE802.11n WIRELESS DRIVER), brcm80211-dev-list@cypress.com (open list:BROADCOM BRCM80211 IEEE802.11n WIRELESS DRIVER), netdev@vger.kernel.org (open list:NETWORKING DRIVERS) Subject: [PATCH 4/9] mac80211: Add missing annotation for brcms_rfkill_set_hw_state() Date: Sat, 11 Apr 2020 01:19:28 +0100 Message-Id: <20200411001933.10072-5-jbi.octave@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200411001933.10072-1-jbi.octave@gmail.com> References: <0/9> <20200411001933.10072-1-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Sparse reports a warning at brcms_rfkill_set_hw_state() warning: context imbalance in brcms_rfkill_set_hw_state() - unexpected unlock The root cause is the missing annotation at brcms_rfkill_set_hw_state() Add the missing __must_hold(&wl->lock) annotation Signed-off-by: Jules Irenge --- drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c index 8e8b685cfe09..c3dbeacea6ca 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c @@ -1717,6 +1717,7 @@ int brcms_check_firmwares(struct brcms_info *wl) * precondition: perimeter lock has been acquired */ bool brcms_rfkill_set_hw_state(struct brcms_info *wl) + __must_hold(&wl->lock) { bool blocked = brcms_c_check_radio_disabled(wl->wlc); -- 2.24.1