From mboxrd@z Thu Jan 1 00:00:00 1970 From: ebiederm@xmission.com (Eric W. Biederman) Subject: [PATCH net-next 2/2] iwlwifi: mvm: Fix the build of mvm/phy-ctxt.c with debugfs disabled Date: Fri, 06 Mar 2015 20:37:03 -0600 Message-ID: <8761ad7cts.fsf_-_@x220.int.ebiederm.org> References: <874mpy2gw5.fsf@kamboji.qca.qualcomm.com> <87fv9h7cwl.fsf@x220.int.ebiederm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: David Miller , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Emmanuel Grumbach To: Kalle Valo Return-path: Received: from out02.mta.xmission.com ([166.70.13.232]:36711 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753594AbbCGCkk convert rfc822-to-8bit (ORCPT ); Fri, 6 Mar 2015 21:40:40 -0500 In-Reply-To: <87fv9h7cwl.fsf@x220.int.ebiederm.org> (Eric W. Biederman's message of "Fri, 06 Mar 2015 20:35:22 -0600") Sender: netdev-owner@vger.kernel.org List-ID: When attempting to build my kernel I get: CC drivers/net/wireless/iwlwifi/mvm/phy-ctxt.o drivers/net/wireless/iwlwifi/mvm/phy-ctxt.c: In function =E2=80=98iwl_= mvm_phy_ctxt_cmd_data=E2=80=99: drivers/net/wireless/iwlwifi/mvm/phy-ctxt.c:178:6: error: =E2=80=98str= uct iwl_mvm=E2=80=99 has no member named =E2=80=98dbgfs_rx_phyinfo=E2=80= =99 drivers/net/wireless/iwlwifi/mvm/phy-ctxt.c:179:23: error: =E2=80=98st= ruct iwl_mvm=E2=80=99 has no member named =E2=80=98dbgfs_rx_phyinfo=E2=80= =99 make[6]: *** [drivers/net/wireless/iwlwifi/mvm/phy-ctxt.o] Error 1 =46ix it by making the new code depend on debugfs. =46ixes: ddf89ab10a93e8b iwlwifi: mvm: allow to force the Rx chains fro= m debugfs Cc: Emmanuel Grumbach Signed-off-by: "Eric W. Biederman" --- drivers/net/wireless/iwlwifi/mvm/phy-ctxt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/iwlwifi/mvm/phy-ctxt.c b/drivers/net/= wireless/iwlwifi/mvm/phy-ctxt.c index 1bd10eda01f9..192b74bc8cf6 100644 --- a/drivers/net/wireless/iwlwifi/mvm/phy-ctxt.c +++ b/drivers/net/wireless/iwlwifi/mvm/phy-ctxt.c @@ -175,8 +175,10 @@ static void iwl_mvm_phy_ctxt_cmd_data(struct iwl_m= vm *mvm, cmd->rxchain_info |=3D cpu_to_le32(idle_cnt << PHY_RX_CHAIN_CNT_POS); cmd->rxchain_info |=3D cpu_to_le32(active_cnt << PHY_RX_CHAIN_MIMO_CNT_POS); +#ifdef CONFIG_IWLWIFI_DEBUGFS if (unlikely(mvm->dbgfs_rx_phyinfo)) cmd->rxchain_info =3D cpu_to_le32(mvm->dbgfs_rx_phyinfo); +#endif =20 cmd->txchain_info =3D cpu_to_le32(iwl_mvm_get_valid_tx_ant(mvm)); } --=20 2.2.1