Skip to content

Commit ba749e9

Browse files
Ye Bingregkh
authored andcommitted
ext4: introduce EXPORT_SYMBOL_FOR_EXT4_TEST() helper
[ Upstream commit 49504a5 ] Introduce EXPORT_SYMBOL_FOR_EXT4_TEST() helper for kuint test. Signed-off-by: Ye Bin <yebin10@huawei.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://patch.msgid.link/20260314075258.1317579-2-yebin@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu> Stable-dep-of: 519b76a ("ext4: fix mballoc-test.c is not compiled when EXT4_KUNIT_TESTS=M") Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 7e19619 commit ba749e9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

fs/ext4/ext4.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3953,6 +3953,11 @@ static inline bool ext4_inode_can_atomic_write(struct inode *inode)
39533953
extern int ext4_block_write_begin(handle_t *handle, struct folio *folio,
39543954
loff_t pos, unsigned len,
39553955
get_block_t *get_block);
3956+
3957+
#if IS_ENABLED(CONFIG_EXT4_KUNIT_TESTS)
3958+
#define EXPORT_SYMBOL_FOR_EXT4_TEST(sym) \
3959+
EXPORT_SYMBOL_FOR_MODULES(sym, "ext4-test")
3960+
#endif
39563961
#endif /* __KERNEL__ */
39573962

39583963
#define EFSBADCRC EBADMSG /* Bad CRC detected */

0 commit comments

Comments
 (0)