On Tue, 21 May 2019 16:06:33 -0700, Alexei Starovoitov wrote: > clean up explored_states to prep for introduction of hashtable > No functional changes. > > Signed-off-by: Alexei Starovoitov <ast@xxxxxxxxxx> > --- > kernel/bpf/verifier.c | 30 +++++++++++++++++++++--------- > 1 file changed, 21 insertions(+), 9 deletions(-) > > diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c > index 95f9354495ad..a171b2940382 100644 > --- a/kernel/bpf/verifier.c > +++ b/kernel/bpf/verifier.c > @@ -5436,6 +5436,18 @@ enum { > }; > > #define STATE_LIST_MARK ((struct bpf_verifier_state_list *) -1L) > +static struct bpf_verifier_state_list **explored_state( > + struct bpf_verifier_env *env, > + int idx) > +{ > + return &env->explored_states[idx]; > +} > + > +static void init_explored_state(struct bpf_verifier_env *env, int idx) > +{ > + env->explored_states[idx] = STATE_LIST_MARK; > +} > + nit: extra new line here >