diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2026-07-14 14:21:43 +0200 |
|---|---|---|
| committer | Petr Mladek <pmladek@suse.com> | 2026-10-14 11:12:16 +0200 |
| commit | a75d9cc33d8102cd9fd103a7f0466b8ffb2a2d1b (patch) | |
| tree | 7fa47c0e513185677e6847e5b9cf20cd0faec63b /lib/tests | |
| parent | b80fc54890d44cd35360ca122b72224fe78061bf (diff) | |
lib/vsprintf: Use EXPORT_SYMBOL_IF_KUNIT() to export symbols
Replace EXPORT_SYMBOL_FOR_MODULES() with EXPORT_SYMBOL_IF_KUNIT()
to mark the symbols as visible only if CONFIG_KUNIT is enabled.
Kunit test should import the namespace EXPORTED_FOR_KUNIT_TESTING to
use these marked symbols. This is the standard way for all KUnit
tests.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Tamir Duberstein <tamird@kernel.org>
Link: https://patch.msgid.link/20260714122143.743227-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'lib/tests')
| -rw-r--r-- | lib/tests/printf_kunit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tests/printf_kunit.c b/lib/tests/printf_kunit.c index eccf041ebd56..290d59b22c29 100644 --- a/lib/tests/printf_kunit.c +++ b/lib/tests/printf_kunit.c @@ -876,3 +876,4 @@ kunit_test_suite(printf_test_suite); MODULE_AUTHOR("Rasmus Villemoes <linux@rasmusvillemoes.dk>"); MODULE_DESCRIPTION("Test cases for printf facility"); MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS("EXPORTED_FOR_KUNIT_TESTING"); |
