[PATCH] flashcp: improve speed & some clean ups
Leon Woestenberg
leon.woestenberg at gmail.com
Thu Apr 7 11:38:50 EDT 2011
Hello Frans,
On Thu, Apr 7, 2011 at 5:04 PM, Frans Meulenbroeks
<fransmeulenbroeks at gmail.com> wrote:
> +static int compare(unsigned char *src, unsigned char *dst, ssize_t len)
> +{
> + int rv = 0;
> + unsigned long long *sp = (unsigned long long *)src;
> + unsigned long long *dp = (unsigned long long *)dst;
> +
Dangerous on platforms that do not support non-natural alignments (ARM is one).
Unless the alignment rules are enforced elsewhere?
Regards,
Leon.
More information about the linux-mtd
mailing list