diff options
author | 2023-12-04 21:07:18 +0100 | |
---|---|---|
committer | 2023-12-07 15:15:29 +0530 | |
commit | c12c50393c1f6f7d7e45c7f55da9c013c0cc0522 (patch) | |
tree | 08d93c6e330c39b315810f4a07b66c3092ebc2d7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | xfs: extract xfs_da_buf_copy() helper function (diff) | |
download | wireguard-linux-c12c50393c1f6f7d7e45c7f55da9c013c0cc0522.tar.xz wireguard-linux-c12c50393c1f6f7d7e45c7f55da9c013c0cc0522.zip |
xfs: use static_assert to check struct sizes and offsets
Use the compiler-provided static_assert built-in from C11 instead of
the kernel-specific BUILD_BUG_ON_MSG for the structure size and offset
checks in xfs_ondisk. This not only gives slightly nicer error messages
in case things go south, but can also be trivially used as-is in
userspace.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions