public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd, nettel: fix build error and implicit declaration
@ 2006-04-11 18:41 Jesper Juhl
  2006-04-12  9:29 ` Jörn Engel
  0 siblings, 1 reply; 2+ messages in thread
From: Jesper Juhl @ 2006-04-11 18:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: Greg Ungerer, dwmw2

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@gmail.com>
---

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

--- linux-2.6.17-rc1-git4-orig/drivers/mtd/maps/nettel.c	2006-04-09 13:58:20.000000000 +0200
+++ linux-2.6.17-rc1-git4/drivers/mtd/maps/nettel.c	2006-04-11 20:30:37.000000000 +0200
@@ -20,6 +20,8 @@
 #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>
 
 /****************************************************************************/






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-12  9:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-11 18:41 [PATCH] mtd, nettel: fix build error and implicit declaration Jesper Juhl
2006-04-12  9:29 ` Jörn Engel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox