← Back to team overview

sony-vaio-z-series team mailing list archive

Re: Compiling sony-laptop module for 2.6.29-rc7

 

On Mi, 11 Mär 2009, Norbert Preining wrote:
> has anyone managed to compile the sony-laptop module for 2.6.29-rc7? I
> get loads of errors:
>   sony-laptop.c: In function ‘sony_ovga_dsm’:
>   sony-laptop.c:504: warning: assignment discards qualifiers from pointer target type
>   sony-laptop.c:512: warning: passing argument 2 of ‘acpi_evaluate_object’ discards qualifiers from pointer target type
>   sony-laptop.c:524: warning: format ‘%08x’ expects type ‘unsigned int’, but argument 3 has type ‘acpi_integer’
>   sony-laptop.c:527: warning: format ‘%08X’ expects type ‘unsigned int’, but argument 2 has type ‘acpi_integer’
>   sony-laptop.c: In function ‘sony_walk_callback’:
>   sony-laptop.c:1138: error: dereferencing pointer to incomplete type
>   sony-laptop.c:1140: error: dereferencing pointer to incomplete type
>   sony-laptop.c:1141: error: dereferencing pointer to incomplete type

I found a solution:
- copy acconfig.h, aclocal.h, acobject.h from
  /usr/src/linux-2.6.29-rc7/drivers/acpi/acpica/ to the build directory

- add 
	#include "acconfig.h"
	#include "aclocal.h"
	#include "acobject.h"
  to the includes

Then it compiles fine.

And HEHOOOO!!! I can activate my wwan without going through windows.
Fine, very fine.


I guess now it is time to play around with the stamina/speed modus ;-)


Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@xxxxxxxx>        Vienna University of Technology
Debian Developer <preining@xxxxxxxxxx>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
IBSTOCK (n.)
Anything used to make a noise on a corrugated iron wall or
clinker-built fence by dragging it along the surface while walking
past it. 'Mr Bennett thoughtfully selected a stout ibstock and left
the house.' - Jane Austen, Pride and Prejudice, II.
			--- Douglas Adams, The Meaning of Liff



References