shithub: lwext4

Download patch

ref: 116deff32e58ff49c677f2ecad9ad224d9af7581
parent: 46212b802fb942a793c57c23b646aa444937ed69
author: gkostka <kostka.grzegorz@gmail.com>
date: Fri May 30 09:54:09 EDT 2014

Fixed avr warnings.

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,7 +29,10 @@
 elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL  bf518)
     #bf518 demos
     #...
-elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL  generic)
+elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL  avrxmega7)
+    #avrxmega7 demos
+    #...
+else()
     #Generic example target
     add_subdirectory(blockdev)
     add_subdirectory(fs_test)
--- a/lwext4/ext4_hash.c
+++ b/lwext4/ext4_hash.c
@@ -194,7 +194,7 @@
 }
 
 static void
-ext2_prep_hashbuf(const char *src, int slen, uint32_t *dst, int dlen,
+ext2_prep_hashbuf(const char *src, uint32_t slen, uint32_t *dst, int dlen,
     int unsigned_char)
 {
     uint32_t padding = slen | (slen << 8) | (slen << 16) | (slen << 24);
@@ -204,7 +204,7 @@
     const unsigned char *ubuf = (const unsigned char *)src;
     const signed char *sbuf = (const signed char *)src;
 
-    if (slen > dlen)
+    if (slen > (uint32_t)dlen)
         len = dlen;
     else
         len = slen;
--- a/lwext4/ext4_types.h
+++ b/lwext4/ext4_types.h
@@ -485,7 +485,7 @@
     struct ext4_directory_dx_entry *position;
 } ;
 
-#define EXT4_ERR_BAD_DX_DIR       (-75000)
+#define EXT4_ERR_BAD_DX_DIR       (-25000)
 
 
 /*