From patchwork Fri Dec 13 01:24:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mao Wenan X-Patchwork-Id: 11301557 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C035A17EF for ; Wed, 18 Dec 2019 18:01:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 80705206D7 for ; Wed, 18 Dec 2019 18:01:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="b21cDVKF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 80705206D7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=yUTiQiE3mx4VPVNHtHR2H5rWI/yDsw4di+wP6fOixU8=; b=b21cDVKFk9wdWq IDc2SD+mLmmZ3cnDdY1dD4Rv40YaTWhiOT9xwXAsSDQP5wAoD0OtBNSyWcEKycr5vJ2fGGXFl1T1S x92LU+/YLhHJuMZZPWcLWndTWKZttZFTA1OmGPryaJLCcaHMGvpCdvGX4gvL7w4V/eTXThbfM87s+ RqUhfb8QeHtuKHV7JQBWXRecQdbw2IGgiK4+XwnS6Tc++GjrKw8CpkCH2XvZpSd2vJzNFAJJ73tpm HfrSWEnNTbSGQxXaHie80hIsyvfZMUwAZKXhW+f1pzB4lbcPK4Mcas/M/8VeKJufFrJk4oqEemNB+ NOI8ORu/lN8BCKM6xRCA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ihddG-0005MC-Pg; Wed, 18 Dec 2019 18:01:10 +0000 Received: from szxga04-in.huawei.com ([45.249.212.190] helo=huawei.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ifZjb-0003Bq-45 for ath11k@lists.infradead.org; Fri, 13 Dec 2019 01:27:12 +0000 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 84F57648FB05A14B29D8; Fri, 13 Dec 2019 09:27:04 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Fri, 13 Dec 2019 09:27:02 +0800 From: Mao Wenan To: , , , , , , Subject: [PATCH -next] ath11k: add dependency for struct ath11k member debug Date: Fri, 13 Dec 2019 09:24:17 +0800 Message-ID: <20191213012417.130719-1-maowenan@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191212_172711_341658_D84EBE7E X-CRM114-Status: UNSURE ( 5.96 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [45.249.212.190 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-Mailman-Approved-At: Wed, 18 Dec 2019 10:01:07 -0800 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: netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org If CONFIG_ATH11K, CONFIG_MAC80211_DEBUGFS are set, and CONFIG_ATH11K_DEBUGFS is not set, below error can be found, drivers/net/wireless/ath/ath11k/debugfs_sta.c: In function ath11k_dbg_sta_open_htt_peer_stats: drivers/net/wireless/ath/ath11k/debugfs_sta.c:411:4: error: struct ath11k has no member named debug ar->debug.htt_stats.stats_req = stats_req; It is to add the dependency for the member of struct ath11k. Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices") Signed-off-by: Mao Wenan --- drivers/net/wireless/ath/ath11k/debugfs_sta.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/debugfs_sta.c b/drivers/net/wireless/ath/ath11k/debugfs_sta.c index 3c5f931..bcc51d7 100644 --- a/drivers/net/wireless/ath/ath11k/debugfs_sta.c +++ b/drivers/net/wireless/ath/ath11k/debugfs_sta.c @@ -408,7 +408,9 @@ ath11k_dbg_sta_open_htt_peer_stats(struct inode *inode, struct file *file) return -ENOMEM; mutex_lock(&ar->conf_mutex); +#ifdef CONFIG_ATH11K_DEBUGFS ar->debug.htt_stats.stats_req = stats_req; +#endif stats_req->type = ATH11K_DBG_HTT_EXT_STATS_PEER_INFO; memcpy(stats_req->peer_addr, sta->addr, ETH_ALEN); ret = ath11k_dbg_htt_stats_req(ar);