From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932916Ab2LHDn2 (ORCPT ); Fri, 7 Dec 2012 22:43:28 -0500 Received: from terminus.zytor.com ([198.137.202.10]:44935 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932887Ab2LHDn1 (ORCPT ); Fri, 7 Dec 2012 22:43:27 -0500 Message-ID: <50C2B751.5000507@zytor.com> Date: Fri, 07 Dec 2012 19:43:13 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: James Hogan CC: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Balbir Singh , Ingo Molnar , Andrew Morton , Eric Paris , Will Drewry , James Morris Subject: Re: [PATCH v2 03/44] Add CONFIG_HAVE_64BIT_ALIGNED_STRUCT for taskstats References: <1354723742-6195-1-git-send-email-james.hogan@imgtec.com> <1354723742-6195-4-git-send-email-james.hogan@imgtec.com> In-Reply-To: <1354723742-6195-4-git-send-email-james.hogan@imgtec.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/05/2012 08:08 AM, James Hogan wrote: > On 64 bit architectures with no efficient unaligned access, taskstats > has to add some padding to a reply to prevent unaligned access warnings. > However this also needs to apply to 32 bit architectures with 64 bit > struct alignment such as metag (which has 64 bit memory accesses). Wait... 64-bit struct alignment on structures with only 32-bit members? That might be... interesting... in a number of places... -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.