]> git.baikalelectronics.ru Git - kernel.git/commit
net: sparx5: fix compiletime_assert for GCC 4.9
authorJakub Kicinski <kuba@kernel.org>
Sat, 31 Jul 2021 14:39:17 +0000 (07:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Aug 2021 14:14:15 +0000 (15:14 +0100)
commit29337ba9c785f76f19b5ba39a640fca303e301b8
tree37b9986617dc88b4e0a8c26277b4440528f36714
parent3f18f7b7183ace31c93f2444ed05e302de6cd23e
net: sparx5: fix compiletime_assert for GCC 4.9

Stephen reports sparx5 broke GCC 4.9 build.
Move the compiletime_assert() out of the static function.
Compile-tested only, no object code changes.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: c68622c37ed0 ("net: sparx5: add hostmode with phylink support")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/sparx5/sparx5_netdev.c