2.3.45: error in cpqarray.c

From: Alexandre Hautequest (hquest@istm.com.br)
Date: Mon Feb 14 2000 - 07:49:05 EST


gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -pipe -DCPU=586 -march=i586
-DMODULE -DMODVERSIONS -include
/usr/src/linux/include/linux/modversions.h -c -o cpqarray.o cpqarray.c
In file included from cpqarray.c:54:
cpqarray.h:33: linux/md.h: Arquivo ou diretório não encontrado
cpqarray.c: In function `init_module':
cpqarray.c:315: warning: unused variable `j'
cpqarray.c:315: warning: unused variable `i'
make[2]: *** [cpqarray.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.3.45/drivers/block'
make[1]: *** [_modsubdir_block] Error 2
make[1]: Leaving directory `/usr/src/linux-2.3.45/drivers'
make: *** [_mod_drivers] Error 2

This error will be also in raid1.c and raid5.c. I think i've saw this in
raid patches for 2.2.1x.

The patch below fixes this.

----->8 Cut Here 8<-----

diff --unified -r linux-vanilla/drivers/block/cpqarray.h
linux/drivers/block/cpq
array.h
--- linux-vanilla/drivers/block/cpqarray.h Mon Feb 14 10:45:44 2000
+++ linux/drivers/block/cpqarray.h Mon Feb 14 10:46:00 2000
@@ -30,7 +30,7 @@
 #include <linux/locks.h>
 #include <linux/malloc.h>
 #include <linux/proc_fs.h>
-#include <linux/md.h>
+#include <linux/raid/md.h>
 #include <linux/timer.h>
 #endif
diff --unified -r linux-vanilla/drivers/block/raid1.c
linux/drivers/block/raid1.
c
--- linux-vanilla/drivers/block/raid1.c Mon Feb 14 10:45:44 2000
+++ linux/drivers/block/raid1.c Mon Feb 14 10:46:05 2000
@@ -17,7 +17,7 @@
 #include <linux/module.h>
 #include <linux/locks.h>
 #include <linux/malloc.h>
-#include <linux/md.h>
+#include <linux/raid/md.h>
 #include <linux/raid1.h>
 #include <asm/bitops.h>
 #include <asm/atomic.h>
diff --unified -r linux-vanilla/drivers/block/raid5.c
linux/drivers/block/raid5.
c
--- linux-vanilla/drivers/block/raid5.c Mon Feb 14 10:45:44 2000
+++ linux/drivers/block/raid5.c Mon Feb 14 10:46:11 2000
@@ -17,7 +17,7 @@
 #include <linux/module.h>
 #include <linux/locks.h>
 #include <linux/malloc.h>
-#include <linux/md.h>
+#include <linux/raid/md.h>
 #include <linux/raid5.h>
 #include <asm/bitops.h>
 #include <asm/atomic.h>

----->8 Cut Here 8<-----

-- 
Alexandre Hautequest - Linux User #116289
"When I'm on the road, I'm indestructible. No one can stop me. But they
try..."

O .br que não para de crescer: http://stats.distributed.net/rc5-64/psearch.php3?st=.br

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:26 EST