xfs: dont cast to char * for XFS_DFORK_*PTR macros
authorDarrick J. Wong <djwong@kernel.org>
Fri, 15 Dec 2023 18:03:35 +0000 (10:03 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 15 Dec 2023 18:03:35 +0000 (10:03 -0800)
commit6b5d917780219d0d8f8e2cefefcb6f50987d0fa3
tree66040ae8b60583ae49bf23022dbac49cb23eb333
parent576d30ecb620ae3bc156dfb2a4e91143e7f3256d
xfs: dont cast to char * for XFS_DFORK_*PTR macros

Code in the next patch will assign the return value of XFS_DFORK_*PTR
macros to a struct pointer.  gcc complains about casting char* strings
to struct pointers, so let's fix the macro's cast to void* to shut up
the warnings.

While we're at it, fix one of the scrub tests that uses PTR to use BOFF
instead for a simpler integer comparison, since other linters whine
about char* and void* comparisons.

Can't satisfy all these dman bots.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_format.h
fs/xfs/scrub/inode.c