]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb/client: Use EXPORT_SYMBOL_IF_KUNIT() to export symbols
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 14 Jul 2026 12:21:20 +0000 (14:21 +0200)
committerSteve French <stfrench@microsoft.com>
Wed, 15 Jul 2026 02:48:00 +0000 (21:48 -0500)
commitb8de511f0e80a2ab9d23df73d147423968ebf102
treef2c5c9aa58f495b11df9cd0f2d6cd17ae45e8104
parent8986c932905ea508d66da421eb2eb6e676ace1fe
smb/client: 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>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb1maperror.c
fs/smb/client/smb1maperror_test.c