From: Andrew Morton drivers/mtd/nand/nandsim.c: In function 'divide': drivers/mtd/nand/nandsim.c:462: error: implicit declaration of function 'do_div' Cc: David Woodhouse Cc: Stephen Rothwell Signed-off-by: Andrew Morton --- drivers/mtd/nand/nandsim.c | 1 + 1 file changed, 1 insertion(+) diff -puN drivers/mtd/nand/nandsim.c~drivers-mtd-nand-nandsimc-needs-div64h drivers/mtd/nand/nandsim.c --- a/drivers/mtd/nand/nandsim.c~drivers-mtd-nand-nandsimc-needs-div64h +++ a/drivers/mtd/nand/nandsim.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include _