iwlwifi: avoid build warning in iwl-core.
PATCH 1/1 iwlwifi: avoid build warning in iwl-core.
When building when CONFIG_IWLWIFI_DEBUG is not set is not set, we get the following
warning:
/work/src/w/drivers/net/wireless/iwlwifi/iwl-core.c: In function ‘iwl_isr’:
/work/src/w/drivers/net/wireless/iwlwifi/iwl-core.c:1707: warning:
unused variable ‘inta_fh’
This patch avoids this warning by adding #ifdef CONFIG_IWLWIFI_DEBUG before the declaration of inta_fh in iwl_isr() in drivers/net/wireless/iwlwifi/iwl-core.c
---
(wireless-testing).
(quoted diff) +0 -0
b/drivers/net/wireless/iwlwifi/iwl-core.c
index e93ddb7..811a525 100644
drivers/net/wireless/iwlwifi/iwl-core.c +2 -1
@@ -1704,8 +1704,9 @@ static irqreturn_t iwl_isr(int irq, void *data) {struct iwl_priv *priv = data;u32 inta, inta_mask; +#ifdef CONFIG_IWLWIFI_DEBUG u32 inta_fh; - +#endif if (!priv)return IRQ_NONE ;
Quoted 7 lines · Rami Rosen
When building when
CONFIG_IWLWIFI_DEBUGis not set is not set, we get the following
warning:
/work/src/w/drivers/net/wireless/iwlwifi/iwl-core.c: In function ‘iwl_isr’:
/work/src/w/drivers/net/wireless/iwlwifi/iwl-core.c:1707: warning:
unused variable ‘inta_fh’
Quoted 7 lines
This patch avoids this warning by adding #ifdef
CONFIG_IWLWIFI_DEBUGbefore the declaration ofinta_fhiniwl_isr()indrivers/net/wireless/iwlwifi/iwl-core.cSigned-off-by Rami Rosen <[email protected]>---
There is just a double "is not set" in the commit message.
Thank you
Reinette