shithub: lwext4

Download patch

ref: 757363a0f8b2746eddf3575e381f5ca3980f94be
parent: b3fc8b9dd5365861b4399b1dce12040ad91ba1bb
author: root <[email protected]>
date: Thu Oct 8 12:00:23 EDT 2015

Fix compiler warnings..ext4_fsetxattr stub added.

--- a/lwext4/ext4.c
+++ b/lwext4/ext4.c
@@ -572,19 +572,6 @@
 	return false;
 }
 
-static int ext4_iterate_ea(struct ext4_xattr_ref *ref,
-			   struct ext4_xattr_item *item)
-{
-	int i;
-	ext4_dprintf(EXT4_DEBUG_INODE, "item->name: ");
-	for (i = 0;i < item->name_len;i++)
-		ext4_dprintf(EXT4_DEBUG_INODE, "%c", item->name[i]);
-
-	ext4_dprintf(EXT4_DEBUG_INODE, "\n");
-
-	return EXT4_XATTR_ITERATE_CONT;
-}
-
 /*
  * NOTICE: if filetype is equal to EXT4_DIRENTRY_UNKNOWN,
  * any filetype of the target dir entry will be accepted.
@@ -1945,7 +1932,7 @@
 		   size_t data_size,
 		   bool replace)
 {
-
+	return EOK;
 }
 
 /*********************************DIRECTORY OPERATION************************/
--- a/lwext4/ext4_xattr.c
+++ b/lwext4/ext4_xattr.c
@@ -929,7 +929,7 @@
 		return NULL;
 
 	for (i = 0;prefix_tbl[i].prefix;i++) {
-		int prefix_len = strlen(prefix_tbl[i].prefix);
+		size_t prefix_len = strlen(prefix_tbl[i].prefix);
 		if (full_name_len >= prefix_len &&
 		    !memcmp(full_name,
 			    prefix_tbl[i].prefix, prefix_len)) {