← Back to team overview

hybrid-graphics-linux team mailing list archive

Re: ASUS K52J

 

2010/6/28 Albert Vilella <avilella@xxxxxxxxx>:
> 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

Hm, I'm not sure if something is changed between the different kernel
versions, but I compiled the module under 2.6.34. All I did was
'make', and it generated the acpi_call.ko file, which I could 'insmod'
later.

>From the error log, I can see that it doesn't know the copy_from_user
function, maybe try inserting '#include <linux/kernel.h>' or something
similar in the beginning. I will try it out once I get to my machine.



References