make: Entering directory `/usr/local/src/linux-2.5.38/drivers/block'
gcc -Wp,-MD,./.floppy.o.d -D__KERNEL__
-I/usr/local/src/linux-2.5.38/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=i686
-iwithprefix include -DMODULE -DKBUILD_BASENAME=floppy -c -o
floppy.c: In function `cleanup_module':
floppy.c:4565: `drive' undeclared (first use in this function)
floppy.c:4565: (Each undeclared identifier is reported only once
floppy.c:4565: for each function it appears in.)
floppy.c:4559: warning: unused variable `i'
floppy.c:4573: warning: statement with no effect
make: *** [floppy.o] Error 1
make: Leaving directory `/usr/local/src/linux-2.5.38/drivers/block'
make: *** [block] Error 2
make: Leaving directory `/usr/local/src/linux-2.5.38/drivers'
make: *** [drivers] Error 2
It is quite obvious that 'i' should be replaced with 'drive'
at line 4559 (this makes it build) - however the "statement
with no effect" stays. It's late, i have to catch a plane
back to Italy in a few hours so I can't debug further...
"everything dies, baby that's a fact
but maybe everything that dies someday comes back"
(Bruce Springsteen, "Atlantic City")