From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] Fix ARM BUILD_BUG_ON() errors with batman-adv Date: Sun, 01 Dec 2013 14:21:35 -0500 (EST) Message-ID: <20131201.142135.880608909113540809.davem@davemloft.net> References: <20131130230518.GC16735@n2100.arm.linux.org.uk> <529A8276.9060002@meshcoding.com> <529B47AA.8060403@meshcoding.com> Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, b.a.t.m.a.n-ZwoEplunGu2X36UT3dwllkB+6BGkLq7r@public.gmane.org, linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org To: antonio-x4xJYDvStAgysxA8WJXlww@public.gmane.org Return-path: In-Reply-To: <529B47AA.8060403-x4xJYDvStAgysxA8WJXlww@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: b.a.t.m.a.n-bounces-ZwoEplunGu2X36UT3dwllkB+6BGkLq7r@public.gmane.org Sender: "B.A.T.M.A.N" List-Id: netdev.vger.kernel.org From: Antonio Quartulli Date: Sun, 01 Dec 2013 15:28:58 +0100 > Am I wrong or this is a problem in the ARM compiler not doing the > right assumption? On x86 and x86_64 offset_of dest is 4, as expected. These alignment behaviors are defined by the processor ABI, there is no set of global rules that apply, so it behaves differently on different CPUs. What you observe is correct behavior for compilation on ARM processors.