Skip to content

Commit 49504a5

Browse files
Ye Bintytso
authored andcommitted
ext4: introduce EXPORT_SYMBOL_FOR_EXT4_TEST() helper
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>
1 parent bac3190 commit 49504a5

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
@@ -3944,6 +3944,11 @@ static inline bool ext4_inode_can_atomic_write(struct inode *inode)
39443944
extern int ext4_block_write_begin(handle_t *handle, struct folio *folio,
39453945
loff_t pos, unsigned len,
39463946
get_block_t *get_block);
3947+
3948+
#if IS_ENABLED(CONFIG_EXT4_KUNIT_TESTS)
3949+
#define EXPORT_SYMBOL_FOR_EXT4_TEST(sym) \
3950+
EXPORT_SYMBOL_FOR_MODULES(sym, "ext4-test")
3951+
#endif
39473952
#endif /* __KERNEL__ */
39483953

39493954
#endif /* _EXT4_H */

0 commit comments

Comments
 (0)