net/mlx5: move static asserts to global scope
authorOphir Munk <ophirmu@nvidia.com>
Mon, 28 Dec 2020 09:54:12 +0000 (11:54 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:07 +0000 (16:03 +0100)
commit9b9890e20dc4541fd06bc5666e5fb8a507dfb3e9
tree0208fab4bf9abc39bec8d87456cf9b707102df5a
parentffe262d675fdc43973bf61d94f610d9aabd53403
net/mlx5: move static asserts to global scope

Some Windows compilers consider static_assert() as calls to another
function rather than a compiler directive which allows checking type
information at compile time.  This only occurs if the static_assert call
appears inside another function scope. To solve it move the
static_assert calls to global scope in the files where they are used.

Signed-off-by: Ophir Munk <ophirmu@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_rxtx.c
drivers/net/mlx5/mlx5_txpp.c