Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

eth: mtk_eth_soc: silence the GCC 12 array-bounds warning

GCC 12 gets upset because in mtk_foe_entry_commit_subflow()
this driver allocates a partial structure. The writes are
within bounds.

Silence these warnings for now, our build bot runs GCC 12
so we won't allow any new instances.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jakub Kicinski and committed by
David S. Miller
06da3e8f 4149af28

+5
+5
drivers/net/ethernet/mediatek/Makefile
··· 11 11 endif 12 12 obj-$(CONFIG_NET_MEDIATEK_SOC_WED) += mtk_wed_ops.o 13 13 obj-$(CONFIG_NET_MEDIATEK_STAR_EMAC) += mtk_star_emac.o 14 + 15 + # FIXME: temporarily silence -Warray-bounds on non W=1+ builds 16 + ifndef KBUILD_EXTRA_WARN 17 + CFLAGS_mtk_ppe.o += -Wno-array-bounds 18 + endif