[PATCH] 2.6.24-rc3-mm2 build failure pasemi-rng driver

From: Kamalesh Babulal
Date: Wed Nov 28 2007 - 09:22:24 EST


Hi Andrew,

The kerne build fails, with message

CC drivers/char/hw_random/pasemi-rng.o
drivers/char/hw_random/pasemi-rng.c: In function âpasemi_rng_data_presentâ:
drivers/char/hw_random/pasemi-rng.c:53: error: âwaitâ undeclared (first use in this function)
drivers/char/hw_random/pasemi-rng.c:53: error: (Each undeclared identifier is reported only once
drivers/char/hw_random/pasemi-rng.c:53: error: for each function it appears in.)
drivers/char/hw_random/pasemi-rng.c: At top level:
drivers/char/hw_random/pasemi-rng.c:93: warning: initialization from incompatible pointer type
make[3]: *** [drivers/char/hw_random/pasemi-rng.o] Error 1
make[2]: *** [drivers/char/hw_random] Error 2
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2

Tested for build failure, only.

Signed-off-by: Kamalesh Babulal <kamalesh@xxxxxxxxxxxxxxxxxx>
--
--- linux-2.6.24-rc3/drivers/char/hw_random/pasemi-rng.c 2007-11-28 17:47:41.000000000 +0530
+++ linux-2.6.24-rc3/drivers/char/hw_random/~pasemi-rng.c 2007-11-28 19:43:10.000000000 +0530
@@ -42,7 +42,7 @@

#define MODULE_NAME "pasemi_rng"

-static int pasemi_rng_data_present(struct hwrng *rng)
+static int pasemi_rng_data_present(struct hwrng *rng, int wait)
{
void __iomem *rng_regs = (void __iomem *)rng->priv;
int data, i;
-
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/