Re: [BUG] alignment problem in net/core/flow.c:flow_key_compare

From: Måns Rullgård
Date: Thu Mar 18 2004 - 14:43:34 EST


"David S. Miller" <davem@xxxxxxxxxx> writes:

> On Thu, 18 Mar 2004 12:25:57 +0100
> mru@xxxxxx (Måns Rullgård) wrote:
>
>> mru@xxxxxx (Måns Rullgård) writes:
>>
>> > The solutions I see are either to force the alignment of struct flowi
>> > to 64 bits, or to use 32-bit access in flow_key_compare.
>>
>> I forgot to mention that this is kernel 2.6.4.
>
> Yes, just add an alignment attribute of some kind to the struct
> is probably the best idea.

What's the proper way of doing that in kernel code? Should I use gcc
__attribute__ directly or is there some macro that's preferred?

--
Måns Rullgård
mru@xxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/