Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761705Ab2EQX0N (ORCPT ); Thu, 17 May 2012 19:26:13 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:60722 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754074Ab2EQX0L (ORCPT ); Thu, 17 May 2012 19:26:11 -0400 Message-ID: <4FB58901.5060604@gmail.com> Date: Thu, 17 May 2012 16:25:53 -0700 From: David Daney User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10 MIME-Version: 1.0 To: "H. Peter Anvin" CC: "H.J. Lu" , Ralf Baechle , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, torvalds@linux-foundation.org, mingo@kernel.org, tglx@linutronix.de Subject: Re: [RFC PATCH 00/10] Use __kernel_[u]long_t for x32 user space compatibility References: <1337292816-10839-1-git-send-email-hjl.tools@gmail.com> <4FB584C0.6080807@gmail.com> <4FB585B8.2010607@zytor.com> In-Reply-To: <4FB585B8.2010607@zytor.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 Content-Length: 1272 Lines: 41 On 05/17/2012 04:11 PM, H. Peter Anvin wrote: > On 05/17/2012 04:07 PM, David Daney wrote: >> >> Has anybody checked how this affects MIPS n32 userspace? >> >> I think it totally breaks it. >> > > Do you have any basis whatsoever for that statement? You should have asked for a 'solid basis'. My basis is that the name '__kernel_ulong_t' implies, in my mind, that it would have the width of a kernel unsigned long. Really it should be called something like __abi_alternate_ulong_t. > This should have > zero effect on any non-x32 platforms. After further reflection on this, you are probably right. Sorry for raising the alarm (or would that be crying Wolf?). > >> In addition, 109a1f32 (sysinfo: Use explicit types in) >> is probably bad. I think it may need to be reverted, or somebody should >> fix all the __kernel_{,u}long_t definitions for the ABI that may have >> been broken by the change. > > You realize __kernel_[u]long_t didn't even exist until the 3.4 kernel, > right? Yes. David Daney -- 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/