diff options
author | наб <[email protected]> | 2022-01-21 18:01:55 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-01-26 11:38:52 -0800 |
commit | c70bb2f610523f9791796cedf6b0d5af1925131e (patch) | |
tree | 1c0cbe7d7360775f3cfe8511213be0e85387f2e1 /module/zfs | |
parent | 7ada752a934f79d87fb9ef998455f26fd07f59a7 (diff) |
Replace *CTASSERT() with _Static_assert()
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #12993
Diffstat (limited to 'module/zfs')
-rw-r--r-- | module/zfs/edonr_zfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/edonr_zfs.c b/module/zfs/edonr_zfs.c index aa00e1c94..938d684ec 100644 --- a/module/zfs/edonr_zfs.c +++ b/module/zfs/edonr_zfs.c @@ -89,7 +89,8 @@ abd_checksum_edonr_tmpl_init(const zio_cksum_salt_t *salt) * size by double-hashing it (the new salt block will be composed of * H(salt) || H(H(salt))). */ - CTASSERT(EDONR_BLOCK_SIZE == 2 * (EDONR_MODE / 8)); + _Static_assert(EDONR_BLOCK_SIZE == 2 * (EDONR_MODE / 8), + "Edon-R block size mismatch"); EdonRHash(EDONR_MODE, salt->zcs_bytes, sizeof (salt->zcs_bytes) * 8, salt_block); EdonRHash(EDONR_MODE, salt_block, EDONR_MODE, salt_block + |