]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: bgmac: Remove -Warray-bounds exception
authorKees Cook <keescook@chromium.org>
Thu, 6 Oct 2022 19:20:53 +0000 (12:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Oct 2022 07:50:07 +0000 (08:50 +0100)
commit037faacf2e96da8421caae29d8ab8c205f319ad5
treef6f3bcd9965f7a636e41fcdcea12f8154117a8d8
parent639dc376319dee19eceadb306c23a46b0b152fb8
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 3c7e0bf4178e ("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>
drivers/net/ethernet/broadcom/Makefile