Skip to content
Snippets Groups Projects
Commit 83bbe2ef authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[PATCH] nfs_common endianness annotations

parent d21ec0c3
No related merge requests found
...@@ -46,7 +46,7 @@ xdr_nfsace_encode(struct xdr_array2_desc *desc, void *elem) ...@@ -46,7 +46,7 @@ xdr_nfsace_encode(struct xdr_array2_desc *desc, void *elem)
{ {
struct nfsacl_encode_desc *nfsacl_desc = struct nfsacl_encode_desc *nfsacl_desc =
(struct nfsacl_encode_desc *) desc; (struct nfsacl_encode_desc *) desc;
u32 *p = (u32 *) elem; __be32 *p = elem;
struct posix_acl_entry *entry = struct posix_acl_entry *entry =
&nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; &nfsacl_desc->acl->a_entries[nfsacl_desc->count++];
...@@ -127,7 +127,7 @@ xdr_nfsace_decode(struct xdr_array2_desc *desc, void *elem) ...@@ -127,7 +127,7 @@ xdr_nfsace_decode(struct xdr_array2_desc *desc, void *elem)
{ {
struct nfsacl_decode_desc *nfsacl_desc = struct nfsacl_decode_desc *nfsacl_desc =
(struct nfsacl_decode_desc *) desc; (struct nfsacl_decode_desc *) desc;
u32 *p = (u32 *) elem; __be32 *p = elem;
struct posix_acl_entry *entry; struct posix_acl_entry *entry;
if (!nfsacl_desc->acl) { if (!nfsacl_desc->acl) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment