[PATCH 2/2] fs/cifs/cifssmb.c: fix the rest of sparse warnings From: Alexey Dobriyan Fix those that weren't brought by le'ifying in posix_acl_xattr.h Signed-off-by: Alexey Dobriyan Signed-off-by: Domen Puncer Index: linux-kj/fs/cifs/cifssmb.c =================================================================== --- linux-kj.orig/fs/cifs/cifssmb.c 2005-10-11 18:38:16.000000000 +0400 +++ linux-kj/fs/cifs/cifssmb.c 2005-10-11 18:38:16.000000000 +0400 @@ -1865,7 +1865,7 @@ static __u16 convert_ace_to_cifs_ace(str /* Probably no need to le convert -1 on any arch but can not hurt */ cifs_ace->cifs_uid = cpu_to_le64(-1); } else - cifs_ace->cifs_uid = (__u64)le32_to_cpu(local_ace->e_id); + cifs_ace->cifs_uid = cpu_to_le64(le32_to_cpu(local_ace->e_id)); /*cFYI(1,("perm %d tag %d id %d",ace->e_perm,ace->e_tag,ace->e_id));*/ return rc; } @@ -1892,9 +1892,9 @@ static __u16 ACL_to_cifs_posix(char * pa } cifs_acl->version = cpu_to_le16(1); if(acl_type == ACL_TYPE_ACCESS) - cifs_acl->access_entry_count = count; + cifs_acl->access_entry_count = cpu_to_le16(count); else if(acl_type == ACL_TYPE_DEFAULT) - cifs_acl->default_entry_count = count; + cifs_acl->default_entry_count = cpu_to_le16(count); else { cFYI(1,("unknown ACL type %d",acl_type)); return 0;