From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 414C6C33CB1 for ; Thu, 16 Jan 2020 13:35:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 145A02072B for ; Thu, 16 Jan 2020 13:35:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729208AbgAPNfw (ORCPT ); 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 > > > . >