]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb/client: Use EXPORT_SYMBOL_IF_KUNIT() to export symbols in SMB2
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 14 Jul 2026 13:53:33 +0000 (15:53 +0200)
committerSteve French <stfrench@microsoft.com>
Wed, 15 Jul 2026 02:51:19 +0000 (21:51 -0500)
commite2e08effef2cd5d5d27b44d6239718ada614eb62
treea1f55b18e82db28d4f96303f400a85540a88965e
parentb8de511f0e80a2ab9d23df73d147423968ebf102
smb/client: Use EXPORT_SYMBOL_IF_KUNIT() to export symbols in SMB2

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/smb2maperror.c
fs/smb/client/smb2maperror_test.c