aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorWillem de Bruijn <[email protected]>2023-11-24 12:15:19 -0500
committerJakub Kicinski <[email protected]>2023-11-27 18:12:07 -0800
commit088559815477c6f623a5db5993491ddd7facbec7 (patch)
treef6aa9a58bc4e9d56241259c5b19442db3b4834f6 /scripts/generate_rust_analyzer.py
parentccf49cebe595e081761f9973f5cabf1afc8b0f23 (diff)
selftests/net: ipsec: fix constant out of range
Fix a small compiler warning. nr_process must be a signed long: it is assigned a signed long by strtol() and is compared against LONG_MIN and LONG_MAX. ipsec.c:2280:65: error: result of comparison of constant -9223372036854775808 with expression of type 'unsigned int' is always false [-Werror,-Wtautological-constant-out-of-range-compare] if ((errno == ERANGE && (nr_process == LONG_MAX || nr_process == LONG_MIN)) Fixes: bc2652b7ae1e ("selftest/net/xfrm: Add test for ipsec tunnel") Signed-off-by: Willem de Bruijn <[email protected]> Reviewed-by: Dmitry Safonov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions