local redeclaration of name_to_dev_t in drivers/mtd/devices/blkmtd.c

Micah Anderson micah at riseup.net
Sun Mar 19 13:28:39 EST 2006


There is a local redeclaration of name_to_dev_t in
drivers/mtd/devices/blkmtd.c:617 which is inconsistant with the
function in mount.h.

The way to fix this would be to remove the declaration and include the
mount.h as the attached patch does.

Note: this issue appears in 2.6.15 (and likely 2.6.16) and should be
fixed there as well.

Thanks,
Micah

--- drivers/mtd/devices/blkmtd.c	2006-01-02 22:21:10.000000000 -0500
+++ /usr/src/linux-source-2.6.15/drivers/mtd/devices/blkmtd.c	2006-03-17 19:03:21.000000000 -0500
@@ -29,6 +29,7 @@
 #include <linux/list.h>
 #include <linux/init.h>
 #include <linux/mtd/mtd.h>
+#include <linux/mount.h>
 
 
 #define err(format, arg...) printk(KERN_ERR "blkmtd: " format "\n" , ## arg)
@@ -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 mailing list