]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: push down unsigned char casts xfs-unsigned-char
authorChristoph Hellwig <hch@lst.de>
Wed, 31 Jul 2024 17:20:05 +0000 (10:20 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 31 Jul 2024 17:20:05 +0000 (10:20 -0700)
commit9392ed7300c3b4e70778156de1bc84a4c40c413b
treeaf844dbb6b51e07971c5ece5b30516082f4eab86
parenta7776862f2f0f97f980cd78cccf454b5440e629b
xfs: push down unsigned char casts

To get us of casting hell, push down the casts to the unsigned char
to the low-level hash code and the on-disk format definitions.  The
hash code is the only place that actually cares about the signedness.

The on-disk format would be cleaner by not using it, but using it
is a correct headsup to worry about the signedness.

Note that right now this only really matters for userspace, as the
kernel forces -funsigned-char for all architectures.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_attr.c
fs/xfs/libxfs/xfs_attr.h
fs/xfs/libxfs/xfs_attr_leaf.c
fs/xfs/libxfs/xfs_da_btree.c
fs/xfs/libxfs/xfs_da_btree.h
fs/xfs/libxfs/xfs_dir2.c
fs/xfs/libxfs/xfs_dir2_block.c
fs/xfs/libxfs/xfs_dir2_data.c
fs/xfs/libxfs/xfs_parent.c
fs/xfs/libxfs/xfs_parent.h
fs/xfs/libxfs/xfs_types.h