Revert "wifi: ath6k: silence false positive -Wno-dangling-pointer warning on GCC 12"
authorKalle Valo <kvalo@kernel.org>
Mon, 24 Jul 2023 10:08:23 +0000 (13:08 +0300)
committerKalle Valo <kvalo@kernel.org>
Wed, 26 Jul 2023 07:09:28 +0000 (10:09 +0300)
This reverts commit bd1d129daa3ede265a880e2c6a7f91eab0f4dc62.

The dangling-pointer warnings were disabled kernel-wide by commit 49beadbd47c2
("gcc-12: disable '-Wdangling-pointer' warning for now") for v5.19. So this
hack in ath6kl is not needed anymore.

Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230724100823.2948804-1-kvalo@kernel.org
drivers/net/wireless/ath/ath6kl/Makefile

index a75bfa9fd1cfd0c2b81bffa5433f6b18382c2059..dc2b3b46781e190a59558b41d8cbd87b3e409df6 100644 (file)
@@ -36,11 +36,6 @@ ath6kl_core-y += wmi.o
 ath6kl_core-y += core.o
 ath6kl_core-y += recovery.o
 
-# FIXME: temporarily silence -Wdangling-pointer on non W=1+ builds
-ifndef KBUILD_EXTRA_WARN
-CFLAGS_htc_mbox.o += $(call cc-disable-warning, dangling-pointer)
-endif
-
 ath6kl_core-$(CONFIG_NL80211_TESTMODE) += testmode.o
 ath6kl_core-$(CONFIG_ATH6KL_TRACING) += trace.o