diff options
author | Darrick J. Wong <djwong@kernel.org> | 2023-12-15 10:03:35 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2023-12-15 10:03:35 -0800 |
commit | 6b5d917780219d0d8f8e2cefefcb6f50987d0fa3 (patch) | |
tree | 66040ae8b60583ae49bf23022dbac49cb23eb333 /fs/xfs/scrub/common.c | |
parent | 576d30ecb620ae3bc156dfb2a4e91143e7f3256d (diff) |
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>
Diffstat (limited to 'fs/xfs/scrub/common.c')
0 files changed, 0 insertions, 0 deletions