Skip to content

Commit aabf615

Browse files
keesdavem330
authored andcommitted
net: ethernet: bgmac: 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> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4af609b commit aabf615

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/net/ethernet/broadcom/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,3 @@ obj-$(CONFIG_BGMAC_BCMA) += bgmac-bcma.o bgmac-bcma-mdio.o
1717
obj-$(CONFIG_BGMAC_PLATFORM) += bgmac-platform.o
1818
obj-$(CONFIG_SYSTEMPORT) += bcmsysport.o
1919
obj-$(CONFIG_BNXT) += bnxt/
20-
21-
# FIXME: temporarily silence -Warray-bounds on non W=1+ builds
22-
ifndef KBUILD_EXTRA_WARN
23-
CFLAGS_tg3.o += -Wno-array-bounds
24-
endif

0 commit comments

Comments
 (0)