]> git.baikalelectronics.ru Git - kernel.git/commit
eth: mtk_eth_soc: silence the GCC 12 array-bounds warning
authorJakub Kicinski <kuba@kernel.org>
Fri, 20 May 2022 19:56:03 +0000 (12:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 May 2022 21:21:11 +0000 (22:21 +0100)
commita105c261767f2c30d6985091d9f33dc37d70bfb1
tree1d6e46091370bd2bdf8d6d03508a20c7431a3dcd
parent6a3d308cbcbcb3472b60436d7ec73a7a3763ffa4
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>
drivers/net/ethernet/mediatek/Makefile