]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix the afs_uuid struct to make the char-sized fields signed
authorDavid Howells <dhowells@redhat.com>
Thu, 2 Nov 2017 15:27:49 +0000 (15:27 +0000)
committerDavid Howells <dhowells@redhat.com>
Mon, 13 Nov 2017 15:38:18 +0000 (15:38 +0000)
commit957d80893b75ab3e150509ec6bd5430cdaa568a4
tree7bb0cedf49ccd5f056edc2950ece6428413f9581
parent900f4ca95da01167b245458d086dfacf03af7488
afs: Fix the afs_uuid struct to make the char-sized fields signed

In AFS's encoding of a UUID, the eight 'char' fields are all signed, so
represent them with __s8 rather than __u8.  This makes the compiler
sign-extend them correctly when XDR-encoding them.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/afs.h