summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2007-08-10 22:01:06 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-08-12 00:47:41 +0200
commit0c1eafdb063a3701eff24d21eb245e3b1d4ac7df (patch)
tree40a9fdc947697d0b9a141d5082452a154644a36e /drivers/mtd
parentfix serial buffer memory leak (diff)
downloadlinux-0c1eafdb063a3701eff24d21eb245e3b1d4ac7df.tar.xz
linux-0c1eafdb063a3701eff24d21eb245e3b1d4ac7df.zip
mtdchar build fix
sh: drivers/mtd/mtdchar.c: In function `mtd_mmap': drivers/mtd/mtdchar.c:817: error: dereferencing pointer to incomplete type drivers/mtd/mtdchar.c:817: error: `VM_SHARED' undeclared (first use in this function) drivers/mtd/mtdchar.c:817: error: (Each undeclared identifier is reported only once Cc: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/mtdchar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c
index 8c86b802f212..d091b2430b48 100644
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
@@ -7,6 +7,7 @@
#include <linux/device.h>
#include <linux/fs.h>
+#include <linux/mm.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/kernel.h>