]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit6387f65e2acb9a63044bd64464401771b8cf1acc
tree37b9986617dc88b4e0a8c26277b4440528f36714
parent7fe74dfd41c428afb24e2e615470832fa997ff14
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: f3cad2611a77 ("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