Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762280Ab2ERDWQ (ORCPT ); Thu, 17 May 2012 23:22:16 -0400 Received: from terminus.zytor.com ([198.137.202.10]:39837 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751562Ab2ERDWO (ORCPT ); Thu, 17 May 2012 23:22:14 -0400 Message-ID: <4FB5C050.9070805@kernel.org> Date: Thu, 17 May 2012 20:21:52 -0700 From: "H. Peter Anvin" Organization: Linux Kernel Organization, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: "H.J. Lu" CC: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, torvalds@linux-foundation.org, mingo@kernel.org, tglx@linutronix.de, Paul Mundt Subject: Re: [PATCH 08/10] Use __kernel_ulong_t in struct msqid64_ds References: <1337292816-10839-1-git-send-email-hjl.tools@gmail.com> <1337292816-10839-9-git-send-email-hjl.tools@gmail.com> <4FB58EFD.7010302@zytor.com> In-Reply-To: <4FB58EFD.7010302@zytor.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 944 Lines: 32 On 05/17/2012 04:51 PM, H. Peter Anvin wrote: > > This patch and the one before it seems to have another problem: we > currently define __BITS_PER_LONG as: > > #ifdef __x86_64__ > # define __BITS_PER_LONG 64 > #else > # define __BITS_PER_LONG 32 > #endif > H.J., do you see any problem *other* than this wretched struct msqid64_ds with changing the above from __x86_64__ to #if defined(__x86_64__) && !defined(__ILP32__) ... in the above? As far as struct msqid64_ds, I think we can fix it simply because x86 is the only compat-aware architecture which has to deal with it. (Incidentally, if sh is ever expanded to 64 bits, it will have a problem in the bigendian configuration...) -hpa -- 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/