Messages in this thread | | | Subject | Re: [BUG] alignment problem in net/core/flow.c:flow_key_compare | From | (Måns Rullgård) | Date | Thu, 18 Mar 2004 20:41:48 +0100 |
| |
"David S. Miller" <davem@redhat.com> writes:
> On Thu, 18 Mar 2004 12:25:57 +0100 > mru@kth.se (Måns Rullgård) wrote: > >> mru@kth.se (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@kth.se - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |