Skip to contentSkip to conversation

2.4.4-pre2 nbd compile error

DISCUSSION George Bonser 2 participants 2 messages Apr 12, 2001

lore
Share & tools
lore
#0 lore raw

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.)
nbd.c: At top level:
nbd.c:481: warning: static declaration for `nbd_init' follows non-static

#1 lore raw
Quoted 9 lines · George Bonser

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 :(

Quoted 2 lines

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

See the attached patch....

Signature · 3 lines
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

linux/blk.h +0 -1
diff -u -r1.1.1.37 blk.h
@@ -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);