Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756845Ab3H2WKJ (ORCPT ); Thu, 29 Aug 2013 18:10:09 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:39048 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756021Ab3H2WKH (ORCPT ); Thu, 29 Aug 2013 18:10:07 -0400 Date: Thu, 29 Aug 2013 18:10:01 -0400 (EDT) Message-Id: <20130829.181001.145658561677052552.davem@davemloft.net> To: jesse@nicira.com Cc: geert@linux-m68k.org, azhou@nicira.com, dev@openvswitch.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org Subject: Re: [-next] openvswitch BUILD_BUG_ON failed From: David Miller In-Reply-To: References: X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.1 (shards.monkeyblade.net [0.0.0.0]); Thu, 29 Aug 2013 15:10:05 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1133 Lines: 25 From: Jesse Gross Date: Thu, 29 Aug 2013 14:42:22 -0700 > On Thu, Aug 29, 2013 at 2:21 PM, Geert Uytterhoeven > wrote: >> However, I have some doubts about other alignment "enforcements": >> >> "__aligned(__alignof__(long))" makes the whole struct aligned to the >> alignment rule for "long": >> 1. This is only 2 bytes on m68k, i.e. != sizeof(long). >> 2. This is 4 bytes on many 32-bit platforms, which may be less than the >> default alignment for "__be64" (cfr. some members of struct >> ovs_key_ipv4_tunnel), so this may make those 64-bit members unaligned. > > Do any of those 32-bit architectures actually care about alignment of > 64 bit values? On 32-bit x86, a long is 32 bits but the alignment > requirement of __be64 is also 32 bit. All except x86-32 do, it is in fact the odd man out with respect to this issue. -- 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/