* [PATCH] ath11k: Fix build warning without CONFIG_IPV6
@ 2022-04-11 2:08 YueHaibing
2022-04-23 9:29 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2022-04-11 2:08 UTC (permalink / raw)
To: kvalo, davem, kuba, pabeni, quic_cjhuang, quic_bqiang
Cc: ath11k, linux-wireless, netdev, linux-kernel, YueHaibing
drivers/net/wireless/ath/ath11k/mac.c:8175:13: error: ‘ath11k_mac_op_ipv6_changed’ defined but not used [-Werror=unused-function]
static void ath11k_mac_op_ipv6_changed(struct ieee80211_hw *hw,
^~~~~~~~~~~~~~~~~~~~~~~~~~
Wrap it with #ifdef block to fix this.
Fixes: c3c36bfe998b ("ath11k: support ARP and NS offload")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
drivers/net/wireless/ath/ath11k/mac.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c
index ca998fb13b62..18a2994b6d85 100644
--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -8151,6 +8151,7 @@ static void ath11k_mac_op_sta_statistics(struct ieee80211_hw *hw,
}
}
+#if IS_ENABLED(CONFIG_IPV6)
static void ath11k_generate_ns_mc_addr(struct ath11k *ar,
struct ath11k_arp_ns_offload *offload)
{
@@ -8245,6 +8246,7 @@ static void ath11k_mac_op_ipv6_changed(struct ieee80211_hw *hw,
/* generate ns multicast address */
ath11k_generate_ns_mc_addr(ar, offload);
}
+#endif
static void ath11k_mac_op_set_rekey_data(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ath11k: Fix build warning without CONFIG_IPV6
2022-04-11 2:08 [PATCH] ath11k: Fix build warning without CONFIG_IPV6 YueHaibing
@ 2022-04-23 9:29 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2022-04-23 9:29 UTC (permalink / raw)
To: YueHaibing
Cc: davem, kuba, pabeni, quic_cjhuang, quic_bqiang, ath11k,
linux-wireless, netdev, linux-kernel, YueHaibing
YueHaibing <yuehaibing@huawei.com> wrote:
> drivers/net/wireless/ath/ath11k/mac.c:8175:13: error: ‘ath11k_mac_op_ipv6_changed’ defined but not used [-Werror=unused-function]
> static void ath11k_mac_op_ipv6_changed(struct ieee80211_hw *hw,
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Wrap it with #ifdef block to fix this.
>
> Fixes: c3c36bfe998b ("ath11k: support ARP and NS offload")
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Patch applied to ath-next branch of ath.git, thanks.
67888630adde ath11k: Fix build warning without CONFIG_IPV6
--
https://patchwork.kernel.org/project/linux-wireless/patch/20220411020843.10284-1-yuehaibing@huawei.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-23 9:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-11 2:08 [PATCH] ath11k: Fix build warning without CONFIG_IPV6 YueHaibing
2022-04-23 9:29 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).