kunit: Export kunit_running()
authorArnd Bergmann <arnd@arndb.de>
Tue, 17 Jan 2023 16:50:26 +0000 (17:50 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 20 Jan 2023 17:03:04 +0000 (10:03 -0700)
commitdb105c37a4d69d684c1edf2915557463d0ba172c
tree5c80938f867b66de342516274b865381e0a1bac3
parent88603b6dc419445847923fcb7fe5080067a30f98
kunit: Export kunit_running()

Using kunit_fail_current_test() in a loadable module causes a link
error like:

ERROR: modpost: "kunit_running" [drivers/gpu/drm/vc4/vc4.ko] undefined!

Export the symbol to allow using it from modules.

Fixes: da43ff045c3f ("drm/vc4: tests: Fail the current test if we access a register")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/test.c