mtd/drivers/mtd/devices blkmtd.c,1.30,1.31

David Woodhouse dwmw2 at infradead.org
Wed Mar 29 03:44:05 EST 2006


Update of /home/cvs/mtd/drivers/mtd/devices
In directory phoenix.infradead.org:/tmp/cvs-serv4125/drivers/mtd/devices

Modified Files:
	blkmtd.c 
Log Message:
blkmtd: fix broken name_to_dev_t() declaration

From: Herbert Poetzl <herbert at 13thfloor.at>

drivers/mtd/devices/blkmtd.c uses a local declaration of name_to_dev_t()
which is inconsistant with the real one.  the following patch fixes this 
by removing the local declaration and including mount.h instead

this patch was originally done by Micah Anderson.

Signed-off-by: Herbert Poetzl <herbert at 13thfloor.at>
Acked-by: Micah Anderson <micah at riseup.net>
Acked-by: Daniel Hokka Zakrisson <daniel at hozac.com>
Cc: Thomas Gleixner <tglx at linutronix.de>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
Signed-off-by: Andrew Morton <akpm at osdl.org>


Index: blkmtd.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/blkmtd.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- blkmtd.c	29 Mar 2006 08:26:27 -0000	1.30
+++ blkmtd.c	29 Mar 2006 08:44:02 -0000	1.31
@@ -28,6 +28,7 @@
 #include <linux/pagemap.h>
 #include <linux/list.h>
 #include <linux/init.h>
+#include <linux/mount.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mutex.h>
 
@@ -614,8 +615,6 @@
 }
 
 
-extern dev_t __init name_to_dev_t(const char *line);
-
 static struct blkmtd_dev *add_device(char *devname, int readonly, int erase_size)
 {
 	struct block_device *bdev;





More information about the linux-mtd-cvs mailing list