diff options
author | Andrei Gherzan <andrei.gherzan@canonical.com> | 2023-02-01 00:16:10 +0000 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-02-02 13:29:51 +0100 |
commit | c03c80e3a03ffb4f790901d60797e9810539d946 (patch) | |
tree | 4ae9100629f8813e4d8827cfd40acccb3e267c97 /net | |
parent | 99f1c46011cc0feb47d4f4f7bee70a0341442d14 (diff) | |
download | linux-stable-c03c80e3a03ffb4f790901d60797e9810539d946.tar.gz linux-stable-c03c80e3a03ffb4f790901d60797e9810539d946.tar.bz2 linux-stable-c03c80e3a03ffb4f790901d60797e9810539d946.zip |
selftests: net: udpgso_bench_rx: Fix 'used uninitialized' compiler warning
This change fixes the following compiler warning:
/usr/include/x86_64-linux-gnu/bits/error.h:40:5: warning: ‘gso_size’ may
be used uninitialized [-Wmaybe-uninitialized]
40 | __error_noreturn (__status, __errnum, __format,
__va_arg_pack ());
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
udpgso_bench_rx.c: In function ‘main’:
udpgso_bench_rx.c:253:23: note: ‘gso_size’ was declared here
253 | int ret, len, gso_size, budget = 256;
Fixes: 3327a9c46352 ("selftests: add functionals test for UDP GRO")
Signed-off-by: Andrei Gherzan <andrei.gherzan@canonical.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20230201001612.515730-1-andrei.gherzan@canonical.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions