ref: cdf912a89fb48d1bf9dead24d2948a46fe199a70
parent: 938f1a2470e728116f16c6f822d27db99ddabbef
author: gkostka <kostka.grzegorz@gmail.com>
date: Wed Oct 28 05:06:41 EDT 2015
Disable checksum calculation when CONFIG_META_CSUM_ENABLE is off
--- a/lwext4/ext4_extent.c
+++ b/lwext4/ext4_extent.c
@@ -70,6 +70,7 @@
EXT4_EXTENT_TAIL_OFFSET(eh));
}
+#if CONFIG_META_CSUM_ENABLE
static uint32_t ext4_ext_block_csum(struct ext4_inode_ref *inode_ref,
struct ext4_extent_header *eh)
{
@@ -96,6 +97,9 @@
}
return checksum;
}
+#else
+#define ext4_ext_block_csum(...) 0
+#endif
/*
* BIG FAT NOTES: