Re: [PATCH v1 1/1] smb/client: Use EXPORT_SYMBOL_IF_KUNIT() to export symbols
Steve French <[email protected]> Tue, 14 Jul 2026 17:02:52 -0500
| Newsgroups | gmane.linux.kernel,gmane.linux.kernel.cifs,gmane.network.samba.internals |
|---|---|
| Message-ID | <CAH2r5mu1nf-jOVkobrBRv8wQoCYC=+9JkpPsR-zYgwn2MdD8Mg@mail.gmail.com> |
merged into cifs-2.6.git for-next On Tue, Jul 14, 2026 at 7:36=E2=80=AFAM ChenXiaoSong via samba-technical <[email protected]> wrote: > > Reviewed-by: ChenXiaoSong <[email protected]> > > Andy, could you also submit a patch to update > fs/smb/client/smb2maperror.c as well? > > =E5=9C=A8 2026/7/14 20:21, Andy Shevchenko =E5=86=99=E9=81=93: > > 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<[email protected]> > > --- > > fs/smb/client/smb1maperror.c | 24 ++++++++++++------------ > > fs/smb/client/smb1maperror_test.c | 1 + > > 2 files changed, 13 insertions(+), 12 deletions(-) > > -- > ChenXiaoSong <[email protected]> > Chinese Homepage: https://chenxiaosong.com > English Homepage: https://chenxiaosong.com/en > > --=20 Thanks, Steve