]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
md: build failure due to missing delay.h
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 14 Oct 2008 22:09:21 +0000 (09:09 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 15 Oct 2008 10:57:05 +0000 (21:57 +1100)
Today's linux-next build (powerpc ppc64_defconfig) failed like this:

drivers/md/raid1.c: In function 'sync_request':
drivers/md/raid1.c:1759: error: implicit declaration of function 'msleep_interruptible'
make[3]: *** [drivers/md/raid1.o] Error 1
make[3]: *** Waiting for unfinished jobs....
drivers/md/raid10.c: In function 'sync_request':
drivers/md/raid10.c:1749: error: implicit declaration of function 'msleep_interruptible'
make[3]: *** [drivers/md/raid10.o] Error 1
drivers/md/md.c: In function 'md_do_sync':
drivers/md/md.c:5915: error: implicit declaration of function 'msleep'

Caused by commit 6caa3b0bbdb474647f6bdd8a958ffc46f78d8d58 ("md: Remove
unnecessary #includes, #defines, and function declarations").  I added
the following patch.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c
drivers/md/raid1.c
drivers/md/raid10.c

index be2014f6e37b518c78b9e82ce36b5583c1941065..39c9c87a13425abfbedf9b52934d88f5f36facd6 100644 (file)
@@ -44,6 +44,7 @@
 #include <linux/random.h>
 #include <linux/reboot.h>
 #include <linux/file.h>
+#include <linux/delay.h>
 
 #define MAJOR_NR MD_MAJOR
 
index b9764429d856ead58ec0ffd51bc06da21e0891fc..9c788e2489b18934eadb62cac4d4b33b3c121620 100644 (file)
@@ -32,6 +32,7 @@
  */
 
 #include "dm-bio-list.h"
+#include <linux/delay.h>
 #include <linux/raid/raid1.h>
 #include <linux/raid/bitmap.h>
 
index e3794799f308d8e4ae0634699ab05b2f43927073..da5129a24b18142d39595c86415bdef40612e353 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #include "dm-bio-list.h"
+#include <linux/delay.h>
 #include <linux/raid/raid10.h>
 #include <linux/raid/bitmap.h>