[ENBD] Re: 2.4.23 released
Leonid Andreev
leonid@latte.harvard.edu
Tue, 03 Apr 2001 21:24:35 GMT
nbd-2.4.24 compile still blows up when attempted with kernel 2.2.17/SMP:
gcc -O2 -Wall -D_LARGEFILE64_SOURCE -D__SMP__ -DCONFIG_X86_LOCAL_APIC
-D__KERNEL__ -DMODULE -DDEBUG=0
-I/usr/unbackedup/src/ENBD/nbd-2.4.24/linux/include -I/usr/src/linux/include
-DUNIX98_NR_MAJORS=UNIX98_PTY_MAJOR_COUNT -c -o nbd.o
/usr/unbackedup/src/ENBD/nbd-2.4.24/linux/drivers/block/nbd.c
...
/usr/unbackedup/src/ENBD/nbd-2.4.24/linux/drivers/block/nbd.c: In function
`init_module':
/usr/unbackedup/src/ENBD/nbd-2.4.24/linux/drivers/block/nbd.c:3733:
`ll_plug_device_fn' undeclared (first use in this function)
/usr/unbackedup/src/ENBD/nbd-2.4.24/linux/drivers/block/nbd.c:3733:
structure has no member named `plug_device_fn'
...
Adding #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,30) ... #endif
around
ll_plug_device_fn = (BLK_DEFAULT_QUEUE(major))->plug_device_fn;
blk_queue_pluggable(BLK_DEFAULT_QUEUE(major), nbd_plug_device_fn);
seems to make it compile, although I'm not sure it is the right thing to do.
-L.