Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750904AbWCaRSk (ORCPT ); Fri, 31 Mar 2006 12:18:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750918AbWCaRSk (ORCPT ); Fri, 31 Mar 2006 12:18:40 -0500 Received: from ns.suse.de ([195.135.220.2]:24961 "EHLO mx1.suse.de") by vger.kernel.org with ESMTP id S1750904AbWCaRSj (ORCPT ); Fri, 31 Mar 2006 12:18:39 -0500 From: Andi Kleen To: OGAWA Hirofumi Subject: Re: [patch] avoid unaligned access when accessing poll stack Date: Fri, 31 Mar 2006 19:18:34 +0200 User-Agent: KMail/1.9.1 Cc: Jes Sorensen , Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org References: <200603311853.32870.ak@suse.de> <87ek0ipmae.fsf@duaron.myhome.or.jp> In-Reply-To: <87ek0ipmae.fsf@duaron.myhome.or.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200603311918.35207.ak@suse.de> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 569 Lines: 17 On Friday 31 March 2006 19:16, OGAWA Hirofumi wrote: > > OK. So how about this? > > char stack_pps[POLL_STACK_ALLOC] > __attribute__((aligned (sizeof(struct poll_list)))); This would require much more alignment than really necessary. Probably you meant s/sizeof/alignof/. But Jes' patch is fine I think. -Andi - 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/