On Thu, 2013-05-16 at 09:59 -0700, Tim Chen wrote: > On Thu, 2013-05-16 at 09:22 +0200, Geert Uytterhoeven wrote: > > On Thu, May 16, 2013 at 5:57 AM, Xiong Zhou <jencce.kernel@xxxxxxxxx> wrote: > > > --- a/crypto/Kconfig > > > +++ b/crypto/Kconfig > > > @@ -378,6 +378,7 @@ config CRYPTO_CRC32_PCLMUL > > > > > > config CRYPTO_CRCT10DIF > > > tristate "CRCT10DIF algorithm" > > > + depends on CRC_T10DIF > > > > This is a library symbol, so "select CRC_T10DIF"? > > > > > select CRYPTO_HASH > > > help > > > CRC T10 Data Integrity Field computation is being cast as > > > > Gr{oetje,eeting}s, > > > > Geert > > > > This is the fix I think that will resolve the build issues. The generic > crc-t10dif transform depends on the library function crc_t10dif_generic > in lib/crc-t10dif.c, so "depends on CRC_T10DIF" for CRYPTO_CRCT10DIF is > needed. > > Now for CRC_T10DIF, we should use select CRYPTO_HASH, so it can try to > allocate a T10DIF transform if it is available. If not, it will simply > use the crc_t10dif_generic function. Loading the > generic t10dif crypto transform is not mandatory for the library > function crc_t10dif. > > Thanks for catching the issues. > > Tim > Need to also add select CRYPTO for CRC_T10DIF. Updated fix below: Signed-off-by: Tim Chen <tim.c.chen@xxxxxxxxxxxxxxx> --- diff --git a/crypto/Kconfig b/crypto/Kconfig index d1ca631..015df24 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -379,6 +379,7 @@ config CRYPTO_CRC32_PCLMUL config CRYPTO_CRCT10DIF tristate "CRCT10DIF algorithm" select CRYPTO_HASH + depends on CRC_T10DIF help CRC T10 Data Integrity Field computation is being cast as a crypto transform. This allows for faster crc t10 diff diff --git a/lib/Kconfig b/lib/Kconfig index 0cee056..6407793 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -63,7 +63,8 @@ config CRC16 config CRC_T10DIF tristate "CRC calculation for the T10 Data Integrity Field" - select CRYPTO_CRCT10DIF + select CRYPTO + select CRYPTO_HASH help This option is only needed if a module that's not in the kernel tree needs to calculate CRC checks for use with the -- To unsubscribe from this list: send the line "unsubscribe linux-next" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html