Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7782772ybl; Thu, 16 Jan 2020 05:36:32 -0800 (PST) X-Google-Smtp-Source: APXvYqwl64SqyGsVFLFL5GFCZCxke3RtfG0yzA3Gv3G5gbC6Kx+rKV56TrIKC7Tz5g21iZtFPf6X X-Received: by 2002:a9d:ed5:: with SMTP id 79mr1975984otj.72.1579181792364; Thu, 16 Jan 2020 05:36:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579181792; cv=none; d=google.com; s=arc-20160816; b=poM9WZhJpzyYcFGSjc7Hh49kyALP6V1AOtyiI4Hit/EbYBNhpznLxrp3nwfDRgeed1 CRmL+m5gwOuuSb6e0p/n9QnN5d4J7PydnVn9dsnYVBFSLVQxmmTolIWTGjYFoBkjDqB8 CvN33TwlNOUVw9a7DiS4ZqaC5i7Rcg0rRheTLLsUokziK3PNznW0CfORH//+oFLMBGW5 2rvgsoTm/Qjx6p9GPVbaipx+qiGqK+dAaX+L8bsRtjXCnt3qcYarCUrhd2USR/fMRBxg C9wxDlv/He6mEvxYDs5OTQdzDuPjXBmSYsMmd/yzfJ2qoSFMbFh6iD/Xz59MhoO4G3BF JMqg== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=unafkYK1bptrbOfoacVA2edytyA/HF7WK/8zOEhRfSg=; b=gIc99rIxRVRmXQutUKbHET60QwCsR/gNxn1LhY4ahN902UmW26SRkE3LYNPwXo53Vp UFEAnDMnko9sNoWP3i1sZIDDa6iXF5DTF8z1fmZufFe9bJijLNWVrbSmUmZMuVq7IqB2 VkP6RVyM71TuJRaQn++02QaIx6EFGO0z1tJ8FyydOOosMx6oT5ZgnVDbKJ0VIyAIBYzn R64B8vRf8VvYtwTcLlq1LhgXhsw1GrygNnBUwZYPzV/wOci0DZpDud4h491cGoyluxVv GsQC+uuNFXpdpD+J7IpCDftSv5YSnq7Dv2ZKOoqNFkMSES8woxwT1UQ+zHxt5M3vMoMU t3Vg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l84si10915183oig.5.2020.01.16.05.36.10; Thu, 16 Jan 2020 05:36:32 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727005AbgAPNfw (ORCPT + 99 others); Thu, 16 Jan 2020 08:35:52 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:39616 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726832AbgAPNfw (ORCPT ); Thu, 16 Jan 2020 08:35:52 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 0D31D4BFA032F94AF946; Thu, 16 Jan 2020 21:35:49 +0800 (CST) Received: from [127.0.0.1] (10.177.131.64) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.439.0; Thu, 16 Jan 2020 21:35:45 +0800 Subject: Re: [PATCH -next] mac80111: fix build error without CONFIG_ATH11K_DEBUGFS To: Johannes Berg , References: <20200116125155.166749-1-chenzhou10@huawei.com> CC: , , From: Chen Zhou Message-ID: <943b570c-48f9-fe5b-1691-37539e3eeec8@huawei.com> Date: Thu, 16 Jan 2020 21:35:44 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.131.64] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi johannes, On 2020/1/16 20:59, Johannes Berg wrote: > On Thu, 2020-01-16 at 20:51 +0800, Chen Zhou wrote: >> If CONFIG_ATH11K_DEBUGFS is n, build fails: >> >> 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:416:4: error: struct ath11k has no member named debug >> ar->debug.htt_stats.stats_req = stats_req; >> ^~ >> and many more similar messages. >> >> Select ATH11K_DEBUGFS under config MAC80211_DEBUGFS to fix this. > > Heh, no. You need to find a way in ath11 to fix this. In file drivers/net/wireless/ath/ath11k/Makefile, "ath11k-$(CONFIG_MAC80211_DEBUGFS) += debugfs_sta.o", that is, debugfs_sta only compiled when CONFIG_MAC80211_DEBUGFS is y. Any suggestions about this? Thanks, Chen Zhou > > johannes > > > . >