When i compile the acerhk driver with my 2.6 kernel i get an error... I have no idea what is wrong... First here is the driver:
http://www.informatik.hu-berlin.de/~tauber/acerhk/
And here is the error:
enigma:/home/kb/acerhk-0.5.1# make
make newmodule
make[1]: Entering directory `/home/kb/acerhk-0.5.1'
make -C /usr/src/linux-2.6.4 SUBDIRS=/home/kb/acerhk-0.5.1 modules
make[2]: Entering directory `/usr/src/linux-2.6.4'
CHK include/linux/version.h
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[3]: `arch/i386/kernel/asm-offsets.s' is up to date.
CC [M] /home/kb/acerhk-0.5.1/acerhk.o
In file included from include/asm/smp.h:18,
from include/linux/smp.h:17,
from include/linux/sched.h:23,
from include/linux/module.h:10,
from /home/kb/acerhk-0.5.1/acerhk.c:51:
include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from include/asm/smp.h:18,
from include/linux/smp.h:17,
from include/linux/sched.h:23,
from include/linux/module.h:10,
from /home/kb/acerhk-0.5.1/acerhk.c:51:
include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function)
include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function)
include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function)
include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function)
include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'
include/asm/mpspec.h:50: error: `MAX_APICS' undeclared here (not in a function)
In file included from include/asm/smp.h:20,
from include/linux/smp.h:17,
from include/linux/sched.h:23,
from include/linux/module.h:10,
from /home/kb/acerhk-0.5.1/acerhk.c:51:
include/asm/io_apic.h:160: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
include/asm/io_apic.h:160: error: conflicting types for `mp_irqs'
include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from include/linux/smp.h:17,
from include/linux/sched.h:23,
from include/linux/module.h:10,
from /home/kb/acerhk-0.5.1/acerhk.c:51:
include/asm/smp.h:71:26: mach_apicdef.h: No such file or directory
In file included from include/linux/smp.h:17,
from include/linux/sched.h:23,
from include/linux/module.h:10,
from /home/kb/acerhk-0.5.1/acerhk.c:51:
include/asm/smp.h: In function `hard_smp_processor_id':
include/asm/smp.h:75: warning: implicit declaration of function `GET_APIC_ID'
/home/kb/acerhk-0.5.1/acerhk.c:66:1: warning: "MODULE_VERSION" redefined
In file included from /home/kb/acerhk-0.5.1/acerhk.c:51:
include/linux/module.h:145:1: warning: this is the location of the previous definition
/home/kb/acerhk-0.5.1/acerhk.c: At top level:
/home/kb/acerhk-0.5.1/acerhk.c:335: warning: `pbutton_fct' defined but not used
make[3]: *** [/home/kb/acerhk-0.5.1/acerhk.o] Error 1
make[2]: *** [/home/kb/acerhk-0.5.1] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.4'
make[1]: *** [newmodule] Error 2
make[1]: Leaving directory `/home/kb/acerhk-0.5.1'
make: *** [all] Error 2
enigma:/home/kb/acerhk-0.5.1#