Re: [build bug] ./drivers/crypto/hifn_795x.c

From: Ingo Molnar
Date: Fri Jan 25 2008 - 18:51:59 EST



* Ingo Molnar <mingo@xxxxxxx> wrote:

> randconfig testing found this (post-v2.6.24) build bug:
>
> drivers/built-in.o: In function `hifn_unregister_rng':
> hifn_795x.c:(.text+0x17bbd9): undefined reference to `hwrng_unregister'
> drivers/built-in.o: In function `hifn_probe':
> hifn_795x.c:(.text+0x17df70): undefined reference to `hwrng_register'
>
> config attached.

find a workaround below - but i'm not sure it's the right one.

Ingo

Index: linux/drivers/crypto/Kconfig
===================================================================
--- linux.orig/drivers/crypto/Kconfig
+++ linux/drivers/crypto/Kconfig
@@ -89,6 +89,7 @@ config CRYPTO_DEV_HIFN_795X
select CRYPTO_ALGAPI
select CRYPTO_BLKCIPHER
depends on PCI
+ depends on DEV_HIFN_795X = HW_RANDOM
help
This option allows you to have support for HIFN 795x crypto adapters.

--
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/