diff options
author | 2022-02-01 15:42:07 +0100 | |
---|---|---|
committer | 2022-03-14 13:13:49 +0100 | |
commit | a55e65b80e318e8917faa781df9955549c6cdaff (patch) | |
tree | 5ea5614ade87650c895b1308f9c69cd3e59fad32 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: zoned: allow DUP on meta-data block groups (diff) | |
download | linux-dev-a55e65b80e318e8917faa781df9955549c6cdaff.tar.xz linux-dev-a55e65b80e318e8917faa781df9955549c6cdaff.zip |
btrfs: replace BUILD_BUG_ON by static_assert
The static_assert introduced in 6bab69c65013 ("build_bug.h: add wrapper
for _Static_assert") has been supported by compilers for a long time
(gcc 4.6, clang 3.0) and can be used in header files. We don't need to
put BUILD_BUG_ON to random functions but rather keep it next to the
definition.
The exception here is the UAPI header btrfs_tree.h that could be
potentially included by userspace code and the static assert is not
defined (nor used in any other header).
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions