[2.5.38] floppy.c doesn't compile

From: Alessandro Suardi (alessandro.suardi@oracle.com)
Date: Sun Sep 22 2002 - 05:05:50 EST

make[2]: 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
-I/usr/local/src/linux-2.5.38/arch/i386/mach-generic -nostdinc
-iwithprefix include -DMODULE -DKBUILD_BASENAME=floppy -c -o
floppy.o floppy.c
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[2]: *** [floppy.o] Error 1
make[2]: Leaving directory `/usr/local/src/linux-2.5.38/drivers/block'
make[1]: *** [block] Error 2
make[1]: 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")

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 : Mon Sep 23 2002 - 22:00:35 EST