Re: [PATCH v2 5/5] btrfs: use EXPORT_FOR_TESTS for conditionally shared functions

2018-11-19 Thread Nikolay Borisov
On 19.11.18 г. 11:38 ч., Johannes Thumshirn wrote: > Several functions in BTRFS are only used inside the source file they are > declared if CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not defined. However if > CONFIG_BTRFS_FS_RUN_SANITY_TESTS is defined these functions are shared with > the unit tests

[PATCH v2 5/5] btrfs: use EXPORT_FOR_TESTS for conditionally shared functions

2018-11-19 Thread Johannes Thumshirn
Several functions in BTRFS are only used inside the source file they are declared if CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not defined. However if CONFIG_BTRFS_FS_RUN_SANITY_TESTS is defined these functions are shared with the unit tests code. Before the introduction of the EXPORT_FOR_TESTS macro,