[ltp] Re: Hotswap driver (supports DMA, etc etc)

paparoot linux-thinkpad@linux-thinkpad.org
Wed, 22 Feb 2006 01:07:56 +0100


Damn fuck, it doesn't compile at all, even 0.1.5 version :(
Advises welcome

duvel lt_hotswap-0.1.6 # make
make -C /lib/modules/`uname -r`/build SUBDIRS=/root/lt_hotswap-0.1.6 modules
make[1]: Entering directory `/usr/src/linux-2.6.14.2'
  CC [M]  /root/lt_hotswap-0.1.6/lt_hotswap.o
In file included from /root/lt_hotswap-0.1.6/lt_hotswap.h:5,
                 from /root/lt_hotswap-0.1.6/lt_hotswap.c:10:
include/acpi/acpi_drivers.h:69: warning: `struct acpi_device' declared inside 
parameter list
include/acpi/acpi_drivers.h:69: warning: its scope is only this definition or 
declaration, which is probably not what you want
include/acpi/acpi_drivers.h:70: warning: `struct acpi_device' declared inside 
parameter list
include/acpi/acpi_drivers.h:72: warning: `struct acpi_device' declared inside 
parameter list
include/acpi/acpi_drivers.h:77: warning: `struct acpi_device' declared inside 
parameter list
/root/lt_hotswap-0.1.6/lt_hotswap.c: In function `lths_remove_handler':
/root/lt_hotswap-0.1.6/lt_hotswap.c:164: warning: implicit declaration of 
function `acpi_bus_get_device'
/root/lt_hotswap-0.1.6/lt_hotswap.c:166: error: dereferencing pointer to 
incomplete type
/root/lt_hotswap-0.1.6/lt_hotswap.c:167: error: dereferencing pointer to 
incomplete type
/root/lt_hotswap-0.1.6/lt_hotswap.c: In function `lths_install_handler':
/root/lt_hotswap-0.1.6/lt_hotswap.c:201: warning: implicit declaration of 
function `acpi_bus_get_status'
/root/lt_hotswap-0.1.6/lt_hotswap.c:202: error: dereferencing pointer to 
incomplete type
/root/lt_hotswap-0.1.6/lt_hotswap.c:204: error: dereferencing pointer to 
incomplete type
/root/lt_hotswap-0.1.6/lt_hotswap.c:205: error: dereferencing pointer to 
incomplete type
/root/lt_hotswap-0.1.6/lt_hotswap.c:206: error: dereferencing pointer to 
incomplete type
/root/lt_hotswap-0.1.6/lt_hotswap.c:207: error: dereferencing pointer to 
incomplete type
/root/lt_hotswap-0.1.6/lt_hotswap.c: At top level:
/root/lt_hotswap-0.1.6/lt_hotswap.c:261: warning: `struct acpi_device' 
declared inside parameter list
/root/lt_hotswap-0.1.6/lt_hotswap.c: In function `lths_add_device':
/root/lt_hotswap-0.1.6/lt_hotswap.c:285: warning: implicit declaration of 
function `acpi_bus_add'
/root/lt_hotswap-0.1.6/lt_hotswap.c:285: error: `ACPI_BUS_TYPE_DEVICE' 
undeclared (first use in this function)
/root/lt_hotswap-0.1.6/lt_hotswap.c:285: error: (Each undeclared identifier is 
reported only once
/root/lt_hotswap-0.1.6/lt_hotswap.c:285: error: for each function it appears 
in.)
/root/lt_hotswap-0.1.6/lt_hotswap.c: In function `lths_battery_notify':
/root/lt_hotswap-0.1.6/lt_hotswap.c:328: warning: passing arg 2 of 
`lths_add_device' from incompatible pointer type
/root/lt_hotswap-0.1.6/lt_hotswap.c:341: error: dereferencing pointer to 
incomplete type
/root/lt_hotswap-0.1.6/lt_hotswap.c: In function `lths_ide_notify':
/root/lt_hotswap-0.1.6/lt_hotswap.c:402: warning: passing arg 2 of 
`lths_add_device' from incompatible pointer type
/root/lt_hotswap-0.1.6/lt_hotswap.c:425: warning: implicit declaration of 
function `acpi_bus_generate_event'
/root/lt_hotswap-0.1.6/lt_hotswap.c:432: error: dereferencing pointer to 
incomplete type
/root/lt_hotswap-0.1.6/lt_hotswap.c:435: error: dereferencing pointer to 
incomplete type
/root/lt_hotswap-0.1.6/lt_hotswap.c:436: error: dereferencing pointer to 
incomplete type
/root/lt_hotswap-0.1.6/lt_hotswap.c: In function `lths_floppy_notify':
/root/lt_hotswap-0.1.6/lt_hotswap.c:459: warning: passing arg 2 of 
`lths_add_device' from incompatible pointer type
/root/lt_hotswap-0.1.6/lt_hotswap.c:483: error: dereferencing pointer to 
incomplete type
/root/lt_hotswap-0.1.6/lt_hotswap.c: In function `lths_setup_proc':
/root/lt_hotswap-0.1.6/lt_hotswap.c:544: error: `acpi_root_dir' undeclared 
(first use in this function)
/root/lt_hotswap-0.1.6/lt_hotswap.c: In function `lths_remove_proc':
/root/lt_hotswap-0.1.6/lt_hotswap.c:555: error: `acpi_root_dir' undeclared 
(first use in this function)
make[2]: *** [/root/lt_hotswap-0.1.6/lt_hotswap.o] Error 1
make[1]: *** [_module_/root/lt_hotswap-0.1.6] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.14.2'
make: *** [default] Error 2