]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ztest: use ASSERT3P to compare pointers
authorBrooks Davis <brooks@one-eyed-alien.net>
Mon, 22 Apr 2024 17:48:58 +0000 (10:48 -0700)
committerGitHub <noreply@github.com>
Mon, 22 Apr 2024 17:48:58 +0000 (10:48 -0700)
commit7e52795aad561ec39e76a3ef6fea9e5c254b2e16
treef227624c4e76da7dc7731e2d077c1f20dd32d85f
parentcdae59e1530061cf4caa549a062994161c4383c6
ztest: use ASSERT3P to compare pointers

With a sufficiently modern gcc (I saw this with gcc13), gcc complains
when casting pointers to an integer of a different type (even a larger
one).  On 32-bt ASSERT3U does this on 32-bit systems by casting a 32-bit
pointer to uint64_t so use ASSERT3P which uses uintptr_t.

Fixes: 5caeef02fa53 RAID-Z expansion feature
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Brooks Davis <brooks.davis@sri.com>
Closes #16115
cmd/ztest.c