]> 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)
commit98cbc30aa8f5c03731232381e6046c17b2186d95
tree1d6e46091370bd2bdf8d6d03508a20c7431a3dcd
parent7fb63b7d5277387fc93a0cf286669993c8defebc
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