diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-01-17 17:50:26 +0100 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-01-20 10:03:04 -0700 |
commit | db105c37a4d69d684c1edf2915557463d0ba172c (patch) | |
tree | 5c80938f867b66de342516274b865381e0a1bac3 | |
parent | 88603b6dc419445847923fcb7fe5080067a30f98 (diff) | |
download | linux-stable-db105c37a4d69d684c1edf2915557463d0ba172c.tar.gz linux-stable-db105c37a4d69d684c1edf2915557463d0ba172c.tar.bz2 linux-stable-db105c37a4d69d684c1edf2915557463d0ba172c.zip |
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>
-rw-r--r-- | lib/kunit/test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/kunit/test.c b/lib/kunit/test.c index c9ebf975e56b..890ba5b3a981 100644 --- a/lib/kunit/test.c +++ b/lib/kunit/test.c @@ -21,6 +21,7 @@ #include "try-catch-impl.h" DEFINE_STATIC_KEY_FALSE(kunit_running); +EXPORT_SYMBOL_GPL(kunit_running); #if IS_BUILTIN(CONFIG_KUNIT) /* |