• David Gow's avatar
    Fix linked-list KUnit test when run multiple times · cb88577b
    David Gow authored
    
    
    A few of the lists used in the linked-list KUnit tests (the
    for_each_entry{,_reverse} tests) are declared 'static', and so are
    not-reinitialised if the test runs multiple times. This was not a
    problem when KUnit tests were run once on startup, but when tests are
    able to be run manually (e.g. from debugfs[1]), this is no longer the
    case.
    
    Making these lists no longer 'static' causes the lists to be
    reinitialised, and the test passes each time it is run. While there may
    be some value in testing that initialising static lists works, the
    for_each_entry_* tests are unlikely to be the right place for it.
    
    Signed-off-by: default avatarDavid Gow <davidgow@google.com>
    Reviewed-by: default avatarBrendan Higgins <brendanhiggins@google.com>
    Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    cb88577b