Re: Correct types for mod_devicetable.h (was: Re: m68k buildfailure)

From: Pierre Ossman
Date: Mon Dec 10 2007 - 14:13:28 EST


On Mon, 10 Dec 2007 19:11:12 +0100
Adrian Bunk <bunk@xxxxxxxxxx> wrote:

> On Sun, Dec 09, 2007 at 06:08:18PM +0100, Pierre Ossman wrote:
> >
> > This still requires a bit of maintenance to set up a kerneltypes.h for every arch.
>
> Better doing this work once than fixing similar issues again and again.
>

Agreed. But it raises the bar quite a bit to get this ready for upstream.

> > It also means we have to be very careful that gcc's internal alignment settings matched the ones in our header.
>
> There's nothing "gcc internal" about struct alignment - remember that
> any change in struct alignment would change our userspace ABI.
>

Oh? I would have guessed that everything going to and from userspace would be packed. Should probably consider myself lucky I have do deal with few such interactions. :)

Rgds
Pierre

Attachment: signature.asc
Description: PGP signature