Re: [PATCH v1 1/1] smb/client: Use EXPORT_SYMBOL_IF_KUNIT() to export symbols
From: ChenXiaoSong
Date: Tue Jul 14 2026 - 08:44:24 EST
Reviewed-by: ChenXiaoSong <chenxiaosong@xxxxxxxxxx>
Andy, could you also submit a patch to update fs/smb/client/smb2maperror.c as well?
在 2026/7/14 20:21, Andy Shevchenko 写道:
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@xxxxxxxxxxxxxxx>
---
fs/smb/client/smb1maperror.c | 24 ++++++++++++------------
fs/smb/client/smb1maperror_test.c | 1 +
2 files changed, 13 insertions(+), 12 deletions(-)
--
ChenXiaoSong <chenxiaosong@xxxxxxxxxxxxxxxx>
Chinese Homepage: https://chenxiaosong.com
English Homepage: https://chenxiaosong.com/en