Skip to content

Commit d174768

Browse files
keeskvalo
authored andcommitted
wifi: ath9k: Remove -Warray-bounds exception
GCC-12 emits false positive -Warray-bounds warnings with CONFIG_UBSAN_SHIFT (-fsanitize=shift). This is fixed in GCC 13[1], and there is top-level Makefile logic to remove -Warray-bounds for known-bad GCC versions staring with commit f0be87c ("gcc-12: disable '-Warray-bounds' universally for now"). Remove the local work-around. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105679 Signed-off-by: Kees Cook <[email protected]> Acked-by: Toke Høiland-Jørgensen <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c2a94de commit d174768

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/net/wireless/ath/ath9k/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ ath9k_hw-y:= \
4545
ar9003_eeprom.o \
4646
ar9003_paprd.o
4747

48-
# FIXME: temporarily silence -Warray-bounds on non W=1+ builds
49-
ifndef KBUILD_EXTRA_WARN
50-
CFLAGS_mac.o += -Wno-array-bounds
51-
endif
52-
5348
ath9k_hw-$(CONFIG_ATH9K_WOW) += ar9003_wow.o
5449

5550
ath9k_hw-$(CONFIG_ATH9K_BTCOEX_SUPPORT) += btcoex.o \

0 commit comments

Comments
 (0)