[PATCH] mtd: fix broken name_to_dev_t() declaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrew! Folks!

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.

best,
Herbert

Signed-off-by: Herbert Poetzl <[email protected]>
Acked-by: Micah Anderson <[email protected]>
Acked-by: Daniel Hokka Zakrisson <[email protected]>
---

--- ./drivers/mtd/devices/blkmtd.c.orig	2006-01-03 17:29:35 +0100
+++ ./drivers/mtd/devices/blkmtd.c	2006-03-23 20:53:58 +0100
@@ -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>
 
 
@@ -614,8 +615,6 @@ static struct mtd_erase_region_info *cal
 }
 
 
-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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux