Commit 03dc2cfc authored by David Howells's avatar David Howells

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: default avatarDavid Howells <dhowells@redhat.com>
parent f4b3526d
...@@ -79,9 +79,9 @@ struct afs_uuid { ...@@ -79,9 +79,9 @@ struct afs_uuid {
__be32 time_low; /* low part of timestamp */ __be32 time_low; /* low part of timestamp */
__be16 time_mid; /* mid part of timestamp */ __be16 time_mid; /* mid part of timestamp */
__be16 time_hi_and_version; /* high part of timestamp and version */ __be16 time_hi_and_version; /* high part of timestamp and version */
__u8 clock_seq_hi_and_reserved; /* clock seq hi and variant */ __s8 clock_seq_hi_and_reserved; /* clock seq hi and variant */
__u8 clock_seq_low; /* clock seq low */ __s8 clock_seq_low; /* clock seq low */
__u8 node[6]; /* spatially unique node ID (MAC addr) */ __s8 node[6]; /* spatially unique node ID (MAC addr) */
}; };
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment