]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: dont cast to char * for XFS_DFORK_*PTR macros
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 23:07:38 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:25 +0000 (14:06 -0700)
commitfff96ea65e21ce313e44c0f6a4ed73a4dddf1e54
tree7e375b8c8794559c160da9edd8b0a9b5e64ead09
parent5c950b9a1082ccb76902bdd0d1449d903de7de50
xfs: dont cast to char * for XFS_DFORK_*PTR macros

Source kernel commit: 6b5d917780219d0d8f8e2cefefcb6f50987d0fa3

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>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
libxfs/xfs_format.h