]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_span: Replace zero-length array with flexible-array member
authorIdo Schimmel <idosch@mellanox.com>
Fri, 24 Apr 2020 15:43:45 +0000 (18:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Apr 2020 22:41:51 +0000 (15:41 -0700)
commit1eafc3c084f497622a95a14a74e7fe553d950eaa
tree6837e200de06d59c71129382677e0d590cc24ef6
parente6740684315902004236ac85995156f0e2e45b69
mlxsw: spectrum_span: Replace zero-length array with flexible-array member

In a similar fashion to commit 6ea014eeabb9 ("mlxsw: Replace zero-length
array with flexible-array member"), use a flexible-array member to get a
compiler warning in case the flexible array does not occur last in the
structure.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c