wifi: carl9170: Remove -Warray-bounds exception
authorKees Cook <keescook@chromium.org>
Thu, 6 Oct 2022 19:20:51 +0000 (12:20 -0700)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 12 Oct 2022 06:36:38 +0000 (09:36 +0300)
commit2577a58df24417dcdd35a3ba5b9e4e419a7d1234
tree8b893786fab502e80eea513f4c777e79c54ecee3
parent16ef02bad239f11f322df8425d302be62f0443ce
wifi: carl9170: 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: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20221006192051.1742930-1-keescook@chromium.org
drivers/net/wireless/ath/carl9170/Makefile