]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: Fix build warning without CONFIG_IPV6
authorYueHaibing <yuehaibing@huawei.com>
Mon, 11 Apr 2022 02:08:43 +0000 (10:08 +0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Sat, 23 Apr 2022 09:29:53 +0000 (12:29 +0300)
commite8335c163b7f9d246aafeaaa1e5f293fed361a27
treea6e29986b37b9cb7cfcb7169a8f9f928ef812312
parente96ed21eed7bee7129805494d6f22ce143c5b02e
ath11k: Fix build warning without CONFIG_IPV6

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: 6caebf080c30 ("ath11k: support ARP and NS offload")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220411020843.10284-1-yuehaibing@huawei.com
drivers/net/wireless/ath/ath11k/mac.c