[MTD] [NAND] nandsim: missing header for do_div
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Thu Jun 5 14:59:01 EDT 2008
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=4474573a90bae41351fad576fa80c424d62be567
Commit: 4474573a90bae41351fad576fa80c424d62be567
Parent: 7e74a5076edb3555dc6c96dc91b155706515bb4c
Author: Randy Dunlap <randy.dunlap at oracle.com>
AuthorDate: Thu Jun 5 09:43:03 2008 -0700
Committer: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Thu Jun 5 19:45:19 2008 +0100
[MTD] [NAND] nandsim: missing header for do_div
Fix nandsim 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>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
drivers/mtd/nand/nandsim.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c
index add975a..ecd70e2 100644
--- a/drivers/mtd/nand/nandsim.c
+++ b/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-cvs
mailing list