copy_to_user() error when compiling open source AMT driver
Hello, I downloaded the Linux AMT drivers from http://software.intel.com/en-us/articles/download-the-latest-intel-amt-open-source-drivers/#comment-61036 The article by Jeffrey Rott. I tried to compile (make) on Debian Squeeze (2.6.32-amd64), but this fails: root@NAS2:/home/qst/mei7/mei-7.1.20# make cd src && make make[1]: Entering directory `/home/qst/mei7/mei-7.1.20/src' make -C /lib/modules/`uname -r`/build M=`pwd` modules make[2]: Entering directory `/usr/src/linux-headers-2.6.32-5-amd64' CC [M] /home/qst/mei7/mei-7.1.20/src/iorw.o /home/qst/mei7/mei-7.1.20/src/iorw.c: In function âamthi_readâ: /home/qst/mei7/mei-7.1.20/src/iorw.c:368: error: implicit declaration of funcn âcopy_to_userâ make[5]: *** [/home/qst/mei7/mei-7.1.20/src/iorw.o] Error 1 make[4]: *** [_module_/home/qst/mei7/mei-7.1.20/src] Error 2 make[3]: *** [sub-make] Error 2 make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/qst/mei7/mei-7.1.20/src' make: *** [all] Error 2 root@NAS2:/home/qst/mei7/mei-7.1.20# ls COPYING Makefile README src Since I am new to linux, it might be something simple. What do I need to change to fix this. Is this some compiler setting? Some kernel flag or come missing kernel library/header? The README doesn't have info about requirements, so I am not sure whether my kernel version is approprioate. Thanks!
|