md.c in 2.4.0-test1-ac16

From: Thorsten Kranzkowski (th@Marvin.DL8BCU.ampr.org)
Date: Mon Jun 12 2000 - 18:43:14 EST


Hello!
Ingos raid patch has backed out my small patches to md.c.
This is what happens:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.0-test1-ac16-work/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mno-fp-regs -ffixed-8 -mcpu=ev4 -Wa,-mev6 -DEXPORT_SYMTAB -c md.c
In file included from /usr/src/linux-2.4.0-test1-ac16-work/include/linux/raid/md.h:35,
                 from md.c:32:
/usr/src/linux-2.4.0-test1-ac16-work/include/linux/delay.h:19:44: warning: trigraph ??/ ignored
md.c:46: conflicting types for `sys_setsid'
/usr/src/linux-2.4.0-test1-ac16-work/include/asm/unistd.h:562: previous declaration of `sys_setsid'
md.c:1015:29: warning: junk on line after #undef
md.c: In function `alloc_array_sb':
md.c:499: warning: passing arg 1 of `clear_page' makes pointer from integer without a cast
md.c: In function `alloc_disk_sb':
md.c:513: warning: passing arg 1 of `clear_page' makes pointer from integer without a cast
make[3]: *** [md.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.0-test1-ac16-work/drivers/block'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.0-test1-ac16-work/drivers/block'
make[1]: *** [_subdir_block] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.0-test1-ac16-work/drivers'
make: *** [_dir_drivers] Error 2

Alpha AXPpci33 'Noname'
gcc version 2.96 20000530 (experimental)
glibc 2.1.3

here's my patch again:

diff -ur linux-2.4.0-test1-ac4/drivers/block/md.c linux-2.4.0-test1-ac4-work/drivers/block/md.c
--- linux-2.4.0-test1-ac4/drivers/block/md.c Thu May 25 01:38:26 2000
+++ linux-2.4.0-test1-ac4-work/drivers/block/md.c Thu May 25 23:11:22 2000
@@ -43,7 +43,7 @@
 #include <asm/unaligned.h>
 
 extern asmlinkage int sys_sched_yield(void);
-extern asmlinkage int sys_setsid(void);
+extern asmlinkage long sys_setsid(void);
 
 #define MAJOR_NR MD_MAJOR
 #define MD_DRIVER
@@ -1010,7 +1010,7 @@
 skip:
         return 0;
 }
-#undef GETBLK_FAILED KERN_ERR
+#undef GETBLK_FAILED
 
 static void set_this_disk(mddev_t *mddev, mdk_rdev_t *rdev)
 {

Bye,
Thorsten

-- 
| Thorsten Kranzkowski        Internet: dl8bcu@gmx.net                        |
| Mobile: ++49 170 1876134       Snail: Niemannsweg 30, 49201 Dissen, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |

- 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 : Thu Jun 15 2000 - 21:00:27 EST