netdev
[Top] [All Lists]

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

To: Andrew Morton <akpm@xxxxxxxx>
Subject: Re: [BUG] alignment problem in net/core/flow.c:flow_key_compare
From: "David S. Miller" <davem@xxxxxxxxxx>
Date: Thu, 18 Mar 2004 20:21:11 -0800
Cc: yoshfuji@xxxxxxxxxxxxxx, netdev@xxxxxxxxxxx, mru@xxxxxx
In-reply-to: <20040318185940.45108d6a.akpm@osdl.org>
References: <20040318162903.59192d13.akpm@osdl.org> <20040319.115511.32395995.yoshfuji@linux-ipv6.org> <20040318185940.45108d6a.akpm@osdl.org>
Sender: netdev-bounce@xxxxxxxxxxx
On Thu, 18 Mar 2004 18:59:40 -0800
Andrew Morton <akpm@xxxxxxxx> wrote:

> >  -};
> >  +} __attribute__((__aligned__(FLOWI_ALIGN_BYTES)));
> >  
> 
> Why not simply
> 
> >  +} __attribute__((__aligned__(BITS_PER_LONG/8)));

Works for me :-)

<Prev in Thread] Current Thread [Next in Thread>