zdb_il: use flex array member to access ZIL records
commit2507db612df9e888fb9939eec41b48d59ca1c3cb
authorRob Norris <robn@despairlabs.com>
Thu, 5 Dec 2024 00:03:20 +0000 (5 11:03 +1100)
committerGitHub <noreply@github.com>
Thu, 5 Dec 2024 00:03:20 +0000 (4 19:03 -0500)
tree98ecf10ff86e17c35540f3237ae627cf12668292
parenta01504b35c77053e180d557677c4a84218897754
zdb_il: use flex array member to access ZIL records

In 6f50f8e16 we added flex arrays to lr_XX_t structs to silence kernel
bounds check warnings. Userspace code was mostly not updated to use them
though.

It seems that in the right circumstances, compilers can get confused
about sizes in the same way, and throw warnings. This commits switch
those uses over to use the flex array fields also.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #16832
cmd/zdb/zdb_il.c