[ENBD] 2.6.0 support

Carlos Knowlton cknowlton at science.edu
Thu Jan 15 13:05:47 MST 2004


Hi, 

Is there an up-to-date patch available for Linux 2.6? 

I'm having trouble patching-in support for the 2.6.0 kernel.  I'm using the 
2.6.0test2 patch file in the patches folder in the ENBDpackage.  When I 
patch, I get the following: 

 -----------------------------start-----------------------------------------
...
patching file drivers/block/enbd/Kconfig
patching file drivers/block/enbd/Makefile
missing header for unified diff at line 95 of patch
patching file drivers/block/enbd/enbd_base.c
missing header for unified diff at line 4298 of patch
patching file drivers/block/enbd/enbd_ioctl.c
missing header for unified diff at line 4706 of patch
patching file drivers/block/enbd/enbd_ioctl_stub.c
missing header for unified diff at line 4739 of patch
patching file drivers/block/enbd/enbd_md.c
missing header for unified diff at line 4846 of patch
patching file drivers/block/enbd/enbd_proc.c
missing header for unified diff at line 5910 of patch
patching file drivers/block/enbd/enbd_seqno.c
missing header for unified diff at line 5988 of patch
patching file drivers/block/enbd/enbd_speed.c
missing header for unified diff at line 6055 of patch
patching file include/linux/enbd.h
missing header for unified diff at line 6587 of patch
patching file include/linux/enbd_ioctl.h 

 -------------------------------end----------------------------------------- 

When I compile the kernel afterward, I get this: 

 ------------------------------start----------------------------------------
[root at localhost linux-2.6.0]# make
 SPLIT   include/linux/autoconf.h -> include/config/*
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
 CHK     include/linux/compile.h
 CC      arch/i386/kernel/timers/timer_tsc.o
 LD      arch/i386/kernel/timers/built-in.o
 LD      arch/i386/kernel/built-in.o
 IKCFG   kernel/ikconfig.h
 GZIP    kernel/config_data.gz
 IKCFG   kernel/config_data.h
 CC      kernel/configs.o
 LD      kernel/built-in.o
 LD      drivers/block/enbd/built-in.o
 CC [M]  drivers/block/enbd/enbd_base.o
In file included from drivers/block/enbd/enbd_base.c:271:
include/linux/enbd.h:165: error: syntax error before "int"
include/linux/enbd.h:165: warning: function declaration isn't a prototype
include/linux/enbd.h:166: error: syntax error before "kdev_t"
include/linux/enbd.h:166: warning: function declaration isn't a prototype
include/linux/enbd.h:169: error: syntax error before "kdev_t"
include/linux/enbd.h:169: warning: function declaration isn't a prototype
include/linux/enbd.h:184: error: syntax error before "kdev_t"
include/linux/enbd.h:184: warning: no semicolon at end of struct or union
drivers/block/enbd/enbd_base.c: In function `enbd_sync':
drivers/block/enbd/enbd_base.c:533: error: called object is not a function
drivers/block/enbd/enbd_base.c:549: warning: deprecated use of label at end 
of compound statement
drivers/block/enbd/enbd_base.c: In function `enbd_open':
drivers/block/enbd/enbd_base.c:681: warning: implicit declaration of 
function `minor'
drivers/block/enbd/enbd_base.c: In function `enbd_notify_md_devices':
drivers/block/enbd/enbd_base.c:2222: error: `kdev_t' undeclared (first use 
in this function)
drivers/block/enbd/enbd_base.c:2222: error: (Each undeclared identifier is 
reported only once
drivers/block/enbd/enbd_base.c:2222: error: for each function it appears 
in.)
drivers/block/enbd/enbd_base.c:2222: error: syntax error before "enbd_dev"
drivers/block/enbd/enbd_base.c: In function `enbd_ioctl':
drivers/block/enbd/enbd_base.c:3261: error: called object is not a function
drivers/block/enbd/enbd_base.c:3262: error: called object is not a function
drivers/block/enbd/enbd_base.c:3266: error: called object is not a function
drivers/block/enbd/enbd_base.c:3568: error: syntax error before '[' token
drivers/block/enbd/enbd_base.c:3568: error: case label does not reduce to an 
integer constant
drivers/block/enbd/enbd_base.c:3588: error: syntax error before '[' token
drivers/block/enbd/enbd_base.c:3588: error: case label does not reduce to an 
integer constant
drivers/block/enbd/enbd_base.c:3612: error: syntax error before '[' token
drivers/block/enbd/enbd_base.c:3612: error: case label does not reduce to an 
integer constant
drivers/block/enbd/enbd_base.c:3613: error: syntax error before "kdev_t"
drivers/block/enbd/enbd_base.c:3613: warning: function declaration isn't a 
prototype
drivers/block/enbd/enbd_base.c: In function `enbd_reset':
drivers/block/enbd/enbd_base.c:3805: warning: integer constant is too large 
for "long" type
drivers/block/enbd/enbd_base.c: In function `enbd_init_queue':
drivers/block/enbd/enbd_base.c:3972: warning: passing arg 1 of 
`blk_init_queue' from incompatible pointer type
drivers/block/enbd/enbd_base.c:3972: warning: passing arg 2 of 
`blk_init_queue' from incompatible pointer type
drivers/block/enbd/enbd_base.c:3972: error: too many arguments to function 
`blk_init_queue'
make[2]: *** [drivers/block/enbd/enbd_base.o] Error 1
make[1]: *** [drivers/block/enbd] Error 2
make: *** [drivers] Error 2
 -------------------------------end----------------------------------------- 

Does anyone have a solution to this? 

Thanks!
Carlos Knowlton


More information about the ENBD mailing list