Skip to content

Commit 2577a58

Browse files
keeskvalo
authored andcommitted
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 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 <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
1 parent 16ef02b commit 2577a58

File tree

1 file changed

+0
-5
lines changed
  • drivers/net/wireless/ath/carl9170

1 file changed

+0
-5
lines changed

drivers/net/wireless/ath/carl9170/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,3 @@ carl9170-objs := main.o usb.o cmd.o mac.o phy.o led.o fw.o tx.o rx.o
33
carl9170-$(CONFIG_CARL9170_DEBUGFS) += debug.o
44

55
obj-$(CONFIG_CARL9170) += carl9170.o
6-
7-
# FIXME: temporarily silence -Warray-bounds on non W=1+ builds
8-
ifndef KBUILD_EXTRA_WARN
9-
CFLAGS_cmd.o += -Wno-array-bounds
10-
endif

0 commit comments

Comments
 (0)