[PATCH] mtd, nettel: fix build error and implicit declaration

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed May 3 13:56:30 EDT 2006


commit 6cc449c7d0292cb9b993f0df84fd3225e3099492
tree f8ca83dc334e9f9ac12bae78689ae2441daabea0
parent f4e9ce66c70c5d08b8a4d2c676924748c8b7550b
author Jesper Juhl <jesper.juhl at gmail.com> Wed, 12 Apr 2006 03:42:44 -0400
committer David Woodhouse <dwmw2 at shinybook.infradead.org> Wed, 12 Apr 2006 03:42:44 -0400

[PATCH] mtd, nettel: fix build error and implicit declaration

I just hit the following error and warning :
  drivers/mtd/maps/nettel.c: In function `nettel_init':
  drivers/mtd/maps/nettel.c:418: error: `ROOT_DEV' undeclared (first use in this function)
  drivers/mtd/maps/nettel.c:418: error: (Each undeclared identifier is reported only once
  drivers/mtd/maps/nettel.c:418: error: for each function it appears in.)
  drivers/mtd/maps/nettel.c:418: warning: implicit declaration of function `MKDEV'
  make[3]: *** [drivers/mtd/maps/nettel.o] Error 1
  make[2]: *** [drivers/mtd/maps] Error 2
  make[1]: *** [drivers/mtd] Error 2
The patch fixes the missing ROOT_DEV declaration by including linux/root_dev.h
and fixes the implicit declaration of MKDEV by including linux/kdev_t.h .

Signed-off-by: Jesper Juhl <jesper.juhl at gmail.com>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>

 drivers/mtd/maps/nettel.c |    2 ++
 1 files changed, 2 insertions(+)

diff --git a/drivers/mtd/maps/nettel.c b/drivers/mtd/maps/nettel.c
index 54a3102..20771b2 100644
--- a/drivers/mtd/maps/nettel.c
+++ b/drivers/mtd/maps/nettel.c
@@ -20,6 +20,8 @@ #include <linux/mtd/map.h>
 #include <linux/mtd/partitions.h>
 #include <linux/mtd/cfi.h>
 #include <linux/reboot.h>
+#include <linux/kdev_t.h>
+#include <linux/root_dev.h>
 #include <asm/io.h>
 
 /****************************************************************************/




More information about the linux-mtd-cvs mailing list