kernel_samsung_a53x/tools/testing/selftests/net
Willem de Bruijn 801105b247 selftests/net: ipsec: fix constant out of range
[ Upstream commit 088559815477c6f623a5db5993491ddd7facbec7 ]

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 <willemb@google.com>
Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com>
Link: https://lore.kernel.org/r/20231124171645.1011043-2-willemdebruijn.kernel@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:11:10 +01:00
..
forwarding Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mptcp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
altnames.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
config Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devlink_port_split.py Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drop_monitor_tests.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fcnal-test.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fib-onlink-tests.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fib_nexthop_multiprefix.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fib_nexthops.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fib_rule_tests.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fib_tests.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fin_ack_lat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fin_ack_lat.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwtstamp_config.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
icmp_redirect.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
in_netns.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ip6_gre_headroom.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ip_defrag.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ip_defrag.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ipsec.c selftests/net: ipsec: fix constant out of range 2024-11-18 12:11:10 +01:00
ipv6_flowlabel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ipv6_flowlabel.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ipv6_flowlabel_mgr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
l2tp.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msg_zerocopy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msg_zerocopy.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
netdevice.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nettest.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmtu.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psock_fanout.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psock_lib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psock_snd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psock_snd.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psock_tpacket.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reuseaddr_conflict.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reuseaddr_ports_exhausted.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reuseaddr_ports_exhausted.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reuseport_addr_any.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reuseport_addr_any.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reuseport_bpf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reuseport_bpf_cpu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reuseport_bpf_numa.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reuseport_dualstack.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
route_localnet.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtnetlink.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
run_afpackettests Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
run_netsocktests Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rxtimestamp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rxtimestamp.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
so_txtime.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
so_txtime.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
socket.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcp_fastopen_backup_key.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcp_fastopen_backup_key.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcp_inq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcp_mmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_blackhole_dev.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_bpf.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_vxlan_fdb_changelink.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_vxlan_under_vrf.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
timestamping.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tls.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
traceroute.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
txring_overwrite.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
txtimestamp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
txtimestamp.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udpgro.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udpgro_bench.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udpgso.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udpgso.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udpgso_bench.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udpgso_bench_rx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udpgso_bench_tx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vrf-xfrm-tests.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vrf_route_leaking.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vrf_strict_mode_test.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xfrm_policy.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00