Skip to contentSkip to conversation

drivers/mtd/nand/nandsim.c needs div64.h

PATCH In review [email protected] 1 participant 1 message Jul 30, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/13 drivers/mtd/nand/nandsim.c needs div64.h

From: Andrew Morton <[email protected]>

drivers/mtd/nand/nandsim.c: In function 'divide':
drivers/mtd/nand/nandsim.c:462: error: implicit declaration of function 'do_div'

Cc David Woodhouse <[email protected]>
Cc Stephen Rothwell <[email protected]>

---

 drivers/mtd/nand/nandsim.c |    1 +
 1 file changed, 1 insertion(+)
drivers/mtd/nand/nandsim.c renamed from drivers/mtd/nand/nandsim.c~drivers-mtd-nand-nandsimc-needs-div64h +1 -0
diff -puN drivers/mtd/nand/nandsim.c~drivers-mtd-nand-nandsimc-needs-div64h drivers/mtd/nand/nandsim.c
@@ -28,6 +28,7 @@
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/vmalloc.h>
+#include <asm/div64.h>
 #include <linux/slab.h>
 #include <linux/errno.h>
 #include <linux/string.h>

_