diff options
| author | Ye Bin <yebin10@huawei.com> | 2026-03-14 10:52:56 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-04-02 14:25:57 +0300 |
| commit | ba749e9ecb18c41cd16d711569bc221c8f959931 (patch) | |
| tree | 7f280867232f71aa5b8b051e0986fc3ce02d1ea4 | |
| parent | 7e196194ea27bd49adf3551e2aceb83498eb73fe (diff) | |
| download | linux-ba749e9ecb18c41cd16d711569bc221c8f959931.tar.xz | |
ext4: introduce EXPORT_SYMBOL_FOR_EXT4_TEST() helper
[ Upstream commit 49504a512587147dd6da3b4b08832ccc157b97dc ]
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: 519b76ac0b31 ("ext4: fix mballoc-test.c is not compiled when EXT4_KUNIT_TESTS=M")
Signed-off-by: Sasha Levin <sashal@kernel.org>
| -rw-r--r-- | fs/ext4/ext4.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index d4a98ff58076..f1c476303f3a 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -3953,6 +3953,11 @@ static inline bool ext4_inode_can_atomic_write(struct inode *inode) extern int ext4_block_write_begin(handle_t *handle, struct folio *folio, loff_t pos, unsigned len, get_block_t *get_block); + +#if IS_ENABLED(CONFIG_EXT4_KUNIT_TESTS) +#define EXPORT_SYMBOL_FOR_EXT4_TEST(sym) \ + EXPORT_SYMBOL_FOR_MODULES(sym, "ext4-test") +#endif #endif /* __KERNEL__ */ #define EFSBADCRC EBADMSG /* Bad CRC detected */ |
