Re: [patch 1/4] crypto/sha256.c: fix sparse warnings

From: Herbert Xu
Date: Sun Mar 20 2005 - 04:42:24 EST


Alexey Dobriyan <adobriyan@xxxxxxx> wrote:
>
> crypto/sha256.c:61:9: warning: cast to restricted type
>
> Use CHECK="sparse -Wbitwise" to see it.

Thanks. I've applied all four patches to crypto. I changed patch 4/4
slightly so that it reads

+#define u32_in(x) le32_to_cpu(*(const __le32 *)(x))

instead of le32_to_cpup(...) for the sake of minimising the changes.

Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/