wifi: ath9k: Remove -Warray-bounds exception
authorKees Cook <keescook@chromium.org>
Thu, 6 Oct 2022 19:20:54 +0000 (12:20 -0700)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 11 Oct 2022 04:39:11 +0000 (07:39 +0300)
commitd174768932a89c20f2ef6dee2602221143995c29
tree64507afaffef20e9c3148f8dfbd222951e0dc006
parentc2a94de38c74e86f49124ac14f093d6a5c377a90
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 f0be87c42cbd ("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 <keescook@chromium.org>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20221006192054.1742982-1-keescook@chromium.org
drivers/net/wireless/ath/ath9k/Makefile