Beware, mmc.c:39: warning: operation on `ptr' may be undefined is emmitted with the following code. int32_t sum, ptr; sum += bswap_32(*ptr++);
And, indeed, it does not work as expected, but summed every fourth element of an array of int32_t. But the same construct is used in genromfs and does work. sum += bswap_32(*ptr); ++ptr; obviously works.
