diff options
| author | Johannes Thumshirn <[email protected]> | 2018-11-19 10:38:17 +0100 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2018-12-17 14:51:37 +0100 |
| commit | ce9f967f31ea91365c0aa897dbc2bddbd39d7a73 (patch) | |
| tree | b58442541dbac871d1b42d877f66bc1662ef9b08 /tools/perf/scripts/python/stackcollapse.py | |
| parent | f8f591df7d725e3b1ea97e13ac830791b7c4a038 (diff) | |
btrfs: use EXPORT_FOR_TESTS for conditionally exported functions
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, these functions
could not be declared as static and the compiler had a harder task when
optimizing and inlining them.
As we have EXPORT_FOR_TESTS now, use it where appropriate to support the
compiler.
Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: Johannes Thumshirn <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions