]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mediatek: Remove -Warray-bounds exception
authorKees Cook <keescook@chromium.org>
Thu, 6 Oct 2022 19:20:52 +0000 (12:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Oct 2022 07:49:29 +0000 (08:49 +0100)
commita42ef4d5ff7c305c326e97a36c35a516869cc598
tree121ab8ac70b3ca236c624251eb0aa06ca5cd6f51
parentf10d8b549ebe925d74372d05581716cc03f999df
net: ethernet: mediatek: 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 700848c97ca6 ("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/mediatek/Makefile