[PATCH] Re: 2.4.4-pre2 nbd compile error

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Thu Apr 12 2001 - 02:01:30 EST


George Bonser wrote:
>
> gcc -D__KERNEL__ -I/usr/local/src/linux/include -Wall -Wstrict-prototypes -O
> 2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary
> =2 -march=i686 -DMODULE -DMODVERSIONS -include
> /usr/local/src/linux/include/linux/modversions.h -c -o nbd.o nbd.c
> nbd.c: In function `nbd_send_req':
> nbd.c:160: `MSG_MORE' undeclared (first use in this function)
> nbd.c:160: (Each undeclared identifier is reported only once
> nbd.c:160: for each function it appears in.)

Some zerocopy patch leakage :(

> nbd.c: At top level:
> nbd.c:481: warning: static declaration for `nbd_init' follows non-static

See the attached patch....

-- 
Jeff Garzik       | Sam: "Mind if I drive?"
Building 1024     | Max: "Not if you don't mind me clawing at the dash
MandrakeSoft      |       and shrieking like a cheerleader."

Index: include/linux/blk.h =================================================================== RCS file: /cvsroot/gkernel/linux_2_4/include/linux/blk.h,v retrieving revision 1.1.1.37 diff -u -r1.1.1.37 blk.h --- include/linux/blk.h 2001/04/12 03:17:07 1.1.1.37 +++ include/linux/blk.h 2001/04/12 05:57:14 @@ -42,7 +42,6 @@ extern int swimiop_init(void); extern int amiga_floppy_init(void); extern int atari_floppy_init(void); -extern int nbd_init(void); extern int ez_init(void); extern int bpcd_init(void); extern int ps2esdi_init(void);

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



This archive was generated by hypermail 2b29 : Sun Apr 15 2001 - 21:00:17 EST