Skip to contentSkip to conversation

posix_acl_xattr: fix endianness warnings

PATCH New Alexey Dobriyan 1 participant 1 message Feb 16, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 posix_acl_xattr: fix endianness warnings

Fix endianness warnings in fs/xattr_acl.c, fs/xfs/xfs_acl.c. Adds some in fs/cifs/cifssmb.c ("21 insertions(+), 39 deletions(-)").

include/linux/posix_acl_xattr.h +4 -4
Index: linux-warnings/include/linux/posix_acl_xattr.h
===================================================================
@@ -23,13 +23,13 @@
 #define ACL_UNDEFINED_ID	(-1)
 
 typedef struct {
-	__u16			e_tag;
-	__u16			e_perm;
-	__u32			e_id;
+	__le16			e_tag;
+	__le16			e_perm;
+	__le32			e_id;
 } posix_acl_xattr_entry;
 
 typedef struct {
-	__u32			a_version;
+	__le32			a_version;
 	posix_acl_xattr_entry	a_entries[0];
 } posix_acl_xattr_header;