Skip to contentSkip to conversation

fs/cifs/cifssmb.c: fix the rest of sparse warnings

PATCH New Alexey Dobriyan 1 participant 1 message Mar 9, 2005 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/cifs/cifssmb.c: fix the rest of sparse warnings

Fix those that weren't brought by le'ifying in posix_acl_xattr.h

fs/cifs/cifssmb.c +3 -3
Index: linux-2.6.11-bk2-sparse/fs/cifs/cifssmb.c
===================================================================
@@ -1838,7 +1838,7 @@ __u16 convert_ace_to_cifs_ace(struct cif
 	/* 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((__u64)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;
 }
@@ -1865,9 +1865,9 @@ __u16 ACL_to_cifs_posix(char * parm_data
 	}
 	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;

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors