crypto: crct10dif - Add fallback for broken initrds
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Sep 2013 05:31:34 +0000 (15:31 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Sep 2013 05:31:34 +0000 (15:31 +1000)
commit26052f9b9bb8de4f6a57165b0a803de9c26138bd
tree4a22e3a8ae9dde1f1cc14eaad48eae8ad542f86a
parent77dbd7a95e4a4f15264c333a9e9ab97ee27dc2aa
crypto: crct10dif - Add fallback for broken initrds

Unfortunately, even with a softdep some distros fail to include
the necessary modules in the initrd.  Therefore this patch adds
a fallback path to restore existing behaviour where we cannot
load the new crypto crct10dif algorithm.

In order to do this, the underlying crct10dif has been split out
from the crypto implementation so that it can be used on the
fallback path.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Makefile
crypto/crct10dif_common.c [moved from crypto/crct10dif.c with 63% similarity]
crypto/crct10dif_generic.c [new file with mode: 0644]
lib/crc-t10dif.c