From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938264AbXGTRjC (ORCPT ); Fri, 20 Jul 2007 13:39:02 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S937252AbXGTRir (ORCPT ); Fri, 20 Jul 2007 13:38:47 -0400 Received: from terminus.zytor.com ([198.137.202.10]:45931 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S939365AbXGTRip (ORCPT ); Fri, 20 Jul 2007 13:38:45 -0400 Message-ID: <46A0F301.4020703@zytor.com> Date: Fri, 20 Jul 2007 10:38:09 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.0 (X11/20070419) MIME-Version: 1.0 To: Andi Kleen CC: "Luck, Tony" , Randy Dunlap , Andi Kleen , Arthur Jones , Vasily Tarasov , linux-kernel@vger.kernel.org, Jan Kara , linux-arch@vger.kernel.org Subject: Re: build fix for x86_64... References: <617E1C2C70743745A92448908E030B2A01FA46A9@scsmsx411.amr.corp.intel.com> <46A0EAC8.9020203@zytor.com> <200707201925.12036.ak@suse.de> In-Reply-To: <200707201925.12036.ak@suse.de> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Andi Kleen wrote: > > That doesn't help for any old interfaces, like the one here. For those > still ifdefs are needed. Interfaces that use compat_u64 just use > a normal #ifdef CONFIG_COMPAT. > > Besides I have my doubts compat_u64 will be the solution > to these worries. We have hundreds of people adding various interfaces > to Linux and it's unlikely they all heard about it. So likely > these cases will occur again and again. > Of course they will. compat_u64 will have no effect on a properly designed interface where everything is aligned. To me, the whole point with compat_u64 is that when someone has designed an interface improperly (so it's alignment-dependent) then we can replace u64 with compat_u64 and use the same structure on 64 bits even though the original interface was broken. -hpa