[ltp] ibm-acpi : No such device
linux-thinkpad@linux-thinkpad.org
linux-thinkpad@linux-thinkpad.org
Mon, 5 Sep 2005 15:05:20 +0100 (BST)
On Mon, 5 Sep 2005, Leon Brokken wrote:
> Jean Feltrin wrote:
>
>> Hi all.. can you paste here the messages returned while compiling
>> ibm_acpi-0.11 with kernel 2.6.13, I got some errors while compiling if
>> your is the same I found a solution.
>
> Thanks Jean, I somehow forgot that ibm-acpi wouldn't even compile
> correctly.... Looking forward to see the solution!
>
> bash-3.00# make
> make -C /lib/modules/2.6.13/build SUBDIRS=/home/leon/build/ibm-acpi-0.11
> modules
> make[1]: Entering directory `/home/leon/build/linux-2.6.13'
> CC [M] /home/leon/build/ibm-acpi-0.11/ibm_acpi.o
> /home/leon/build/ibm-acpi-0.11/ibm_acpi.c:1756: error: conflicting types
> for `device_add'
> include/linux/device.h:326: error: previous declaration of `device_add'
> make[2]: *** [/home/leon/build/ibm-acpi-0.11/ibm_acpi.o] Error 1
> make[1]: *** [_module_/home/leon/build/ibm-acpi-0.11] Error 2
> make[1]: Leaving directory `/home/leon/build/linux-2.6.13'
> make: *** [default] Error 2
> bash-3.00#
The solution is to rename device_add to something else like
ibm_device_add in ibm_acpi.c - device_add is now used in the kernel,
so there's a clash. This is in the list archive somewhere from a few
weeks back.
Honey