2010/6/28 Albert Vilella <[email protected]>: > this is great. how do I compile it? do I need a 2.6.34+ kernel? I get > this error by doing: > sudo make default > make -C /lib/modules/2.6.32-22-generic/build > M=/home/avilella/hybrid_graphics/acpi_call/mkottman-acpi_call-dc3faa8 > modules > make[1]: Entering directory `/usr/src/linux-headers-2.6.32-22-generic' > CC [M] > /home/avilella/hybrid_graphics/acpi_call/mkottman-acpi_call-dc3faa8/acpi_call.o > /home/avilella/hybrid_graphics/acpi_call/mkottman-acpi_call-dc3faa8/acpi_call.c: > In function ‘acpi_proc_write’: > /home/avilella/hybrid_graphics/acpi_call/mkottman-acpi_call-dc3faa8/acpi_call.c:58: > error: implicit declaration of function ‘copy_from_user’ > make[2]: *** > [/home/avilella/hybrid_graphics/acpi_call/mkottman-acpi_call-dc3faa8/acpi_call.o] > Error 1 > make[1]: *** > [_module_/home/avilella/hybrid_graphics/acpi_call/mkottman-acpi_call-dc3faa8] > Error 2 > make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-22-generic' > make: *** [default] Error 2
Ok, I fixed the module so that it compiles on 2.6.32-22 (the current official Ubuntu Lucid kernel). Get the latest from http://github.com/mkottman/acpi_call or git://github.com/mkottman/acpi_call.git _______________________________________________ Mailing list: https://launchpad.net/~hybrid-graphics-linux Post to : [email protected] Unsubscribe : https://launchpad.net/~hybrid-graphics-linux More help : https://help.launchpad.net/ListHelp

