Bin ich schon dran, habe den Tip im Lenovo Forum auch bekommen allerdings schlägt das kompilieren fehl
Code:
[root@lenovo tp_smapi-0.40]# make
make -C /lib/modules/3.1.4/build M=/home/zyrusthc/tmp/tp_smapi-0.40 O=/lib/modules/3.1.4/build modules
make[1]: Entering directory `/home/zyrusthc/tmp/linux-3.1.4'
CC [M] /home/zyrusthc/tmp/tp_smapi-0.40/thinkpad_ec.o
/home/zyrusthc/tmp/tp_smapi-0.40/thinkpad_ec.c:91:8: Warnung: »int« ist Standardtyp in Deklaration von »DECLARE_MUTEX« [-Wimplicit-int]
/home/zyrusthc/tmp/tp_smapi-0.40/thinkpad_ec.c:91:1: Warnung: Parameternamen (ohne Typen) in Funktionsdeklaration [standardmäßig aktiviert]
/home/zyrusthc/tmp/tp_smapi-0.40/thinkpad_ec.c: In Funktion »thinkpad_ec_lock«:
/home/zyrusthc/tmp/tp_smapi-0.40/thinkpad_ec.c:108:28: Fehler: »thinkpad_ec_mutex« nicht deklariert (erste Benutzung in dieser Funktion)
/home/zyrusthc/tmp/tp_smapi-0.40/thinkpad_ec.c:108:28: Anmerkung: jeder nicht deklarierte Bezeichner wird nur einmal für jede Funktion, in der er vorkommt, gemeldet
/home/zyrusthc/tmp/tp_smapi-0.40/thinkpad_ec.c: In Funktion »thinkpad_ec_try_lock«:
/home/zyrusthc/tmp/tp_smapi-0.40/thinkpad_ec.c:122:23: Fehler: »thinkpad_ec_mutex« nicht deklariert (erste Benutzung in dieser Funktion)
/home/zyrusthc/tmp/tp_smapi-0.40/thinkpad_ec.c: In Funktion »thinkpad_ec_unlock«:
/home/zyrusthc/tmp/tp_smapi-0.40/thinkpad_ec.c:134:6: Fehler: »thinkpad_ec_mutex« nicht deklariert (erste Benutzung in dieser Funktion)
/home/zyrusthc/tmp/tp_smapi-0.40/thinkpad_ec.c: Auf höchster Ebene:
/home/zyrusthc/tmp/tp_smapi-0.40/thinkpad_ec.c:91:8: Warnung: »DECLARE_MUTEX« als »static« deklariert, aber nirgendwo definiert [-Wunused-function]
/home/zyrusthc/tmp/tp_smapi-0.40/thinkpad_ec.c: In Funktion »thinkpad_ec_try_lock«:
/home/zyrusthc/tmp/tp_smapi-0.40/thinkpad_ec.c:123:1: Warnung: Kontrollfluss erreicht Ende von Nicht-void-Funktion [-Wreturn-type]
make[3]: *** [/home/zyrusthc/tmp/tp_smapi-0.40/thinkpad_ec.o] Fehler 1
make[2]: *** [_module_/home/zyrusthc/tmp/tp_smapi-0.40] Fehler 2
make[1]: *** [sub-make] Fehler 2
make[1]: Leaving directory `/home/zyrusthc/tmp/linux-3.1.4'
make: *** [modules] Fehler 2
Jemand eine Idee?
EDIT: gelöst . In den Sourcen DECLARE_MUTEX mit DEFINE_SEMAPHORE ersetzt.
Aber neues Problem
Code:
[root@lenovo tp_smapi-0.40]# insmod thinkpad_ec.ko
insmod: error inserting 'thinkpad_ec.ko': -1 No such device
[root@lenovo tp_smapi-0.40]# insmod tp_smapi.ko
insmod: error inserting 'tp_smapi.ko': -1 Unknown symbol in module
Greeez Oli
Lesezeichen