diff options
| author | Florian Westphal <[email protected]> | 2023-10-12 12:08:56 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2023-10-12 13:34:08 +0000 |
| commit | 2f0968a030f2a5dd4897a0151c8395bf5babe5b0 (patch) | |
| tree | 34987c112d1c0f0683861d387ae6a99dca1731ba /drivers/net/ethernet/intel/ice/ice_lib.c | |
| parent | nfp: add support CHACHA20-POLY1305 offload for ipsec (diff) | |
| download | kernel-2f0968a030f2a5dd4897a0151c8395bf5babe5b0.tar.gz kernel-2f0968a030f2a5dd4897a0151c8395bf5babe5b0.zip | |
net: gso_test: fix build with gcc-12 and earlier
gcc 12 errors out with:
net/core/gso_test.c:58:48: error: initializer element is not constant
58 | .segs = (const unsigned int[]) { gso_size },
This version isn't old (2022), so switch to preprocessor-bsaed constant
instead of 'static const int'.
Cc: Willem de Bruijn <[email protected]>
Reported-by: Tasmiya Nalatwad <[email protected]>
Closes: https://lore.kernel.org/netdev/[email protected]/
Fixes: 1b4fa28a8b07 ("net: parametrize skb_segment unit test to expand coverage")
Signed-off-by: Florian Westphal <[email protected]>
Reviewed-by: Willem de Bruijn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions
