diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-09-01 14:10:21 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-09-01 14:31:52 +0300 |
commit | 8ab9e98ce27487c40289664d6cb1a58f963679cb (patch) | |
tree | 030ab5ecebdd08767bc34e0fb08f14b2d361c34b /flash_eraseall.c | |
parent | f49f5405d6baeaf074b1803a6abc116caf130b9d (diff) |
rename crc32 to mtd_crc32
Because of namespace collisions mkfs.ubifs uses crc32() implementation from
/lib/libz.so.1, which generates incompatible CRC and later on the kernel reports
many CRC errors.
Fix this by re-naming mtd-utils' crc32 function to mtd_crc32.
Reported-by: Jon Povey <Jon.Povey@racelogic.co.uk>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'flash_eraseall.c')
-rw-r--r-- | flash_eraseall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/flash_eraseall.c b/flash_eraseall.c index 5740719..cb6f632 100644 --- a/flash_eraseall.c +++ b/flash_eraseall.c @@ -210,7 +210,7 @@ int main (int argc, char *argv[]) } cleanmarker.totlen = cpu_to_je32(8); } - cleanmarker.hdr_crc = cpu_to_je32 (crc32 (0, &cleanmarker, sizeof (struct jffs2_unknown_node) - 4)); + cleanmarker.hdr_crc = cpu_to_je32 (mtd_crc32 (0, &cleanmarker, sizeof (struct jffs2_unknown_node) - 4)); } for (eb = 0; eb < (mtd.size / mtd.eb_size); eb++) { |