Messages in this thread Patch in this message | | | Subject | Re: 2.1.119 doesn't compile | From | SL Baur <> | Date | 28 Aug 1998 10:47:02 -0700 |
| |
Ganesh Sittampalam <ganesh.sittampalam@magd.ox.ac.uk> writes in linux-kernel@vger.rutgers.edu:
... > gcc -D__KERNEL__ -I/usr/src/linux-2.1.119/include -Wall > -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe > -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 > -malign-functions=2 -DCPU=586 -DMODULE -DMODVERSIONS -include > /usr/src/linux-2.1.119/include/linux/modversions.h -c -o nbd.o > nbd.c > nbd.c: In function `nbd_xmit': > nbd.c:90: `oldset' undeclared (first use this function) > nbd.c:90: (Each undeclared identifier is reported only once > nbd.c:90: for each function it appears in.) > nbd.c:97: warning: unused variable `oldset' > make[2]: *** [nbd.o] Error 1 > make[2]: Leaving directory `/usr/src/linux-2.1.119/drivers/block' > make[1]: *** [_modsubdir_block] Error 2 > make[1]: Leaving directory `/usr/src/linux-2.1.119/drivers' > make: *** [_mod_drivers] Error 2
Some code got moved in that function without a local variable declaration being moved.
--- linux-2.1.119/drivers/block/nbd.c.orig Thu Aug 27 18:48:13 1998 +++ linux-2.1.119/drivers/block/nbd.c Thu Aug 27 19:18:26 1998 @@ -82,6 +82,7 @@ struct msghdr msg; struct iovec iov; unsigned long flags; + sigset_t oldset; oldfs = get_fs(); set_fs(get_ds()); @@ -94,8 +95,6 @@ do { - sigset_t oldset; - iov.iov_base = buf; iov.iov_len = size; msg.msg_name = NULL; - 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.altern.org/andrebalsa/doc/lkml-faq.html
| |