Skip to content

Commit db105c3

Browse files
arndbshuahkh
authored andcommitted
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: da43ff0 ("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>
1 parent 88603b6 commit db105c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/kunit/test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "try-catch-impl.h"
2222

2323
DEFINE_STATIC_KEY_FALSE(kunit_running);
24+
EXPORT_SYMBOL_GPL(kunit_running);
2425

2526
#if IS_BUILTIN(CONFIG_KUNIT)
2627
/*

0 commit comments

Comments
 (0)