[PATCH -next] MTD: missing header for do_div
Randy.Dunlap
rdunlap at xenotime.net
Thu Jun 5 12:43:03 EDT 2008
From: Randy Dunlap <randy.dunlap at oracle.com>
Fix MTD build error, missing #include:
linux-next-20080605/drivers/mtd/nand/nandsim.c: In function 'divide':
linux-next-20080605/drivers/mtd/nand/nandsim.c:462: error: implicit declaration of function 'do_div'
Signed-off-by: Randy Dunlap <randy.dunlap at oracle.com>
---
drivers/mtd/nand/nandsim.c | 1 +
1 file changed, 1 insertion(+)
--- linux-next-20080605.orig/drivers/mtd/nand/nandsim.c
+++ linux-next-20080605/drivers/mtd/nand/nandsim.c
@@ -37,6 +37,7 @@
#include <linux/delay.h>
#include <linux/list.h>
#include <linux/random.h>
+#include <asm/div64.h>
/* Default simulator parameters values */
#if !defined(CONFIG_NANDSIM_FIRST_ID_BYTE) || \
More information about the linux-mtd
mailing list