From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756636AbbJAIXm (ORCPT ); Thu, 1 Oct 2015 04:23:42 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:33828 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755929AbbJAIXh (ORCPT ); Thu, 1 Oct 2015 04:23:37 -0400 Date: Thu, 1 Oct 2015 10:23:33 +0200 From: Ingo Molnar To: Ben Hutchings Cc: x86@kernel.org, LKML , Peter Zijlstra Subject: Re: [PATCH] x86: uapi: Fix __BITS_PER_LONG for x32 Message-ID: <20151001082333.GA1486@gmail.com> References: <1443660043.2730.15.camel@decadent.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1443660043.2730.15.camel@decadent.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Ben Hutchings wrote: > diff --git a/arch/x86/include/uapi/asm/bitsperlong.h b/arch/x86/include/uapi/asm/bitsperlong.h > index b0ae1c4..217909b 100644 > --- a/arch/x86/include/uapi/asm/bitsperlong.h > +++ b/arch/x86/include/uapi/asm/bitsperlong.h > @@ -1,7 +1,7 @@ > #ifndef __ASM_X86_BITSPERLONG_H > #define __ASM_X86_BITSPERLONG_H > > -#ifdef __x86_64__ > +#if defined(__x86_64__) && !defined(__ILP32__) > # define __BITS_PER_LONG 64 Can we write this as: #ifdef __ILP64__ ? Thanks, Ingo