Re: incompatible unaligned.h between x86 and ppc - kernel-hackers verify please
On Wed, Nov 03, 2004 at 09:56:18AM +0100, Christoph Ewering wrote:
> Hello List, hello Klaus, hello Benjamin!
> At the moment I am fighting with an error on ppc when I want to compile
> the new vdr-1.3.14 from Klaus Schmidinger.
> vdr uses unaligned.h and it stops compiling with an error about
> "get_unaligned not declared" on ppc. I tracked this down with the help
> of Klaus to a different header-file asm/unaligned.h between x86 and
> ppc. The asm-ppc/unaligned.h has two lines more - at the begining of
> unaligned.h "#ifdef __KERNEL__" and at the end "#endif /* KERNEL */".
> So I "greped" around in /usr/src/linux/include/asm-* and found that ppc
> uses this construct, only!
Userland programs must not use <asm/unaligned.h>