ryszardzonk wrote:
The previous problem was in fact created by linking to the old module however here come new one

For some reason it errors out on the new kernel - linux-3.8-rc4

Please check below and see if there is any possibility of fixing it
Code:
pc phc-k8_v0.4.5b1 # make
make -C /lib/modules/3.8.0-rc4/build SUBDIRS=/usr/src/patches-kernel/phc-k8_v0.4.5b1 phc-k8.ko
make[1]: Wejście do katalogu `/usr/src/linux-3.8-rc4'
CC [M] /usr/src/patches-kernel/phc-k8_v0.4.5b1/phc-k8.o
/usr/src/patches-kernel/phc-k8_v0.4.5b1/phc-k8.c: In function ‘__check_direct_transitions’:
/usr/src/patches-kernel/phc-k8_v0.4.5b1/phc-k8.c:65:1: warning: return from incompatible pointer type [enabled by default]
/usr/src/patches-kernel/phc-k8_v0.4.5b1/phc-k8.c: In function ‘__check_min_800MHz’:
/usr/src/patches-kernel/phc-k8_v0.4.5b1/phc-k8.c:68:1: warning: return from incompatible pointer type [enabled by default]
/usr/src/patches-kernel/phc-k8_v0.4.5b1/phc-k8.c: At top level:
/usr/src/patches-kernel/phc-k8_v0.4.5b1/phc-k8.c:1761:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘powernowk8_cpu_exit’
/usr/src/patches-kernel/phc-k8_v0.4.5b1/phc-k8.c:2361:2: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
/usr/src/patches-kernel/phc-k8_v0.4.5b1/phc-k8.c:2361:23: error: ‘powernowk8_cpu_exit’ undeclared here (not in a function)
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/patches-kernel/phc-k8_v0.4.5b1/phc-k8.o] Błąd 1
make[1]: *** [phc-k8.ko] Błąd 2
make[1]: Opuszczenie katalogu `/usr/src/linux-3.8-rc4'
make: *** [phc-k8.ko] Błąd 2
I haven't fixed it yet in my own code, but AFAIK for kernel > 3.7 the __devexit and __devexit_p need to be defined as:
Code:
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)
#define __devexit
#define __devexit_p(func) func
#endif
I'm not sure the #if will also work on -rc kernelversion though...