bpf: prepare reg_set_min_max for second set of registers
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 2 Nov 2023 03:37:58 +0000 (20:37 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 10 Nov 2023 02:58:40 +0000 (18:58 -0800)
commit811476e9cc578cb6c776627ac069dc45a8431791
treeddf66079d40143a52af6daa840aa17390d8d6cd7
parent4d345887d2e5a1915600cb5d37b16c4088c6ee1c
bpf: prepare reg_set_min_max for second set of registers

Similarly to is_branch_taken()-related refactorings, start preparing
reg_set_min_max() to handle more generic case of two non-const
registers. Start with renaming arguments to accommodate later addition
of second register as an input argument.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20231102033759.2541186-17-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c