From patchwork Tue Jun 25 09:56:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karthikeyan periyasamy X-Patchwork-Id: 11015179 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6723E924 for ; Tue, 25 Jun 2019 09:56:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 592C1288C6 for ; Tue, 25 Jun 2019 09:56:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D118289B0; Tue, 25 Jun 2019 09:56:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0167C288C6 for ; Tue, 25 Jun 2019 09:56:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=swk7wrzdti83ynfRhwuVwNbV/oo0g8FYxo9S7cM7jNs=; b=uvn 0pdrNV4fJCknbIzFX6zMmWc3J1xeRBPL7wMZmH8W+kPFrFsvehZxzYUtgi6+BiPUdLjNsgVbPPQZ3 qc48NKiHI+NaMLkGYJz2JKretSBfY95sjrNAYey35hGWOgBWkrIsDHepMUrnmZfi061bADB7NVjtk MtNRVFFPTHxb/B0qiz8bdRwtyVtorfigRloZQcAn9D+tsuWq3/gaWg0PIS+GNNBRyr/+Z1UCmj3vp gyLFofoAkQ5QkVtmGZj1ltT6JcEw/GGsalUDHCQml03cnPSegmYIYhh8PZAVFn9BAPvlQd2ECPEvS pFJ2OCtYF3C1n0GBuWOW3GdztTvXbnA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hfiC2-0007yP-GV; Tue, 25 Jun 2019 09:56:50 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hfiC0-0007y4-4m for ath11k@lists.infradead.org; Tue, 25 Jun 2019 09:56:49 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 70CF7607C3; Tue, 25 Jun 2019 09:56:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561456607; bh=O/pk312NyXV9dQKIxemNd9Rr+JhS913Vg+UlOmwdqaw=; h=From:To:Cc:Subject:Date:From; b=ciLdMKL99qzmMhUdtVn8Ij9je6C7QizwU8mYimusRG4zTRoEbk2pyu7+wO+lwqIU1 lC4sWjKm534b2qFi507bmUUDivso0M3jUgEo8el1k4hKAeKvD0fSME1uHC85E0Febh /OH9xeu2wHy/FexFoTS24cPvEz3N4XIMiCywl1h4= Received: from CHECSTP284781-LIN.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: periyasa@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9BE0160A97; Tue, 25 Jun 2019 09:56:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561456606; bh=O/pk312NyXV9dQKIxemNd9Rr+JhS913Vg+UlOmwdqaw=; h=From:To:Cc:Subject:Date:From; b=icWpzxlpMvpNTJOIGheBYiKqroLchBCCccQTypr+p1ZzImXue0qhVPTUpdG9Vm3N/ 79d88nD8lgngDFsA8qwxtQMJG0ykmYBlOpvWj55dJQB+TOHc3HJxYAv7w87xaHVkN0 pcevqCgCwnuasZRy7S5KnITn+ptuOemSqiFOHuH0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9BE0160A97 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=periyasa@codeaurora.org From: Karthikeyan Periyasamy To: ath11k@lists.infradead.org Subject: [PATCH] ath11k: fix mutex definition without comment warning Date: Tue, 25 Jun 2019 15:26:28 +0530 Message-Id: <1561456588-9460-1-git-send-email-periyasa@codeaurora.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190625_025648_204579_539D72BA X-CRM114-Status: UNSURE ( 8.01 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Karthikeyan Periyasamy MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP drivers/net/wireless/ath/ath11k/core.h:446: struct mutex definition without comment drivers/net/wireless/ath/ath11k/core.h:447: spinlock_t definition without comment drivers/net/wireless/ath/ath11k/core.h:478: spinlock_t definition without comment Signed-off-by: Karthikeyan Periyasamy --- drivers/net/wireless/ath/ath11k/core.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/core.h b/drivers/net/wireless/ath/ath11k/core.h index 65c1a6d..e5b1747 100644 --- a/drivers/net/wireless/ath/ath11k/core.h +++ b/drivers/net/wireless/ath/ath11k/core.h @@ -443,8 +443,16 @@ struct ath11k { u32 num_stations; u32 max_num_stations; bool monitor_present; + /* To synchronize concurrent synchronous mac80211 callback operations, + * concurrent debugfs configuration and concurrent FW statistics events. + */ struct mutex conf_mutex; + /* protects the radio specific data like debug stats, ppdu_stats_info stats, + * vdev_stop_status info, scan data, ath11k_sta info, ath11k_vif info, + * channel context data, survey info, test mode data. + */ spinlock_t data_lock; + struct list_head arvifs; /* should never be NULL; needed for regular htt rx */ struct ieee80211_channel *rx_channel; @@ -475,6 +483,7 @@ struct ath11k { u32 num_created_vdevs; struct idr txmgmt_idr; + /* protects txmgmt_idr data */ spinlock_t txmgmt_idr_lock; /* cycle count is reported twice for each visited channel during scan.