Skip to content

Commit

Permalink
Revert "wifi: ath6k: silence false positive -Wno-dangling-pointer war…
Browse files Browse the repository at this point in the history
…ning on GCC 12"

[ Upstream commit a1ce186 ]

This reverts commit bd1d129.

The dangling-pointer warnings were disabled kernel-wide by commit 49beadb
("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Kalle Valo authored and gregkh committed Sep 13, 2023
1 parent 51edd73 commit 848477e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/net/wireless/ath/ath6kl/Makefile
Expand Up @@ -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

Expand Down

0 comments on commit 848477e

Please sign in to comment.