Re: [PATCH] x86: uapi: Fix __BITS_PER_LONG for x32

2015-10-01 Thread Ben Hutchings
On Thu, 2015-10-01 at 21:54 +0100, Ben Hutchings wrote: > On Thu, 2015-10-01 at 09:02 -0400, Brian Gerst wrote: > > On Thu, Oct 1, 2015 at 4:23 AM, Ingo Molnar wrote: > > > > > > * Ben Hutchings wrote: > > > > > > > diff --git a/arch/x86/include/uapi/asm/bitsperlong.h > > > >

Re: [PATCH] x86: uapi: Fix __BITS_PER_LONG for x32

2015-10-01 Thread Ben Hutchings
On Thu, 2015-10-01 at 09:02 -0400, Brian Gerst wrote: > On Thu, Oct 1, 2015 at 4:23 AM, Ingo Molnar wrote: > > > > * 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 > > > ---

Re: [PATCH] x86: uapi: Fix __BITS_PER_LONG for x32

2015-10-01 Thread Brian Gerst
On Thu, Oct 1, 2015 at 4:23 AM, Ingo Molnar wrote: > > * 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 >> +++

Re: [PATCH] x86: uapi: Fix __BITS_PER_LONG for x32

2015-10-01 Thread Ingo Molnar
* 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

Re: [PATCH] x86: uapi: Fix __BITS_PER_LONG for x32

2015-10-01 Thread Ingo Molnar
* 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 @@ >

Re: [PATCH] x86: uapi: Fix __BITS_PER_LONG for x32

2015-10-01 Thread Brian Gerst
On Thu, Oct 1, 2015 at 4:23 AM, Ingo Molnar wrote: > > * 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 >> ---

Re: [PATCH] x86: uapi: Fix __BITS_PER_LONG for x32

2015-10-01 Thread Ben Hutchings
On Thu, 2015-10-01 at 09:02 -0400, Brian Gerst wrote: > On Thu, Oct 1, 2015 at 4:23 AM, Ingo Molnar wrote: > > > > * Ben Hutchings wrote: > > > > > diff --git a/arch/x86/include/uapi/asm/bitsperlong.h > > > b/arch/x86/include/uapi/asm/bitsperlong.h > > >

Re: [PATCH] x86: uapi: Fix __BITS_PER_LONG for x32

2015-10-01 Thread Ben Hutchings
On Thu, 2015-10-01 at 21:54 +0100, Ben Hutchings wrote: > On Thu, 2015-10-01 at 09:02 -0400, Brian Gerst wrote: > > On Thu, Oct 1, 2015 at 4:23 AM, Ingo Molnar wrote: > > > > > > * Ben Hutchings wrote: > > > > > > > diff --git

[PATCH] x86: uapi: Fix __BITS_PER_LONG for x32

2015-09-30 Thread Ben Hutchings
On x32, gcc predefines __x86_64__ but long is only 32-bit. Use __ILP32__ to distinguish x32. Fixes this compiler error in perf: /«PKGBUILDDIR»/tools/include/asm-generic/bitops/__ffs.h: In function '__ffs': /«PKGBUILDDIR»/tools/include/asm-generic/bitops/__ffs.h:19:8: error: right shift count

[PATCH] x86: uapi: Fix __BITS_PER_LONG for x32

2015-09-30 Thread Ben Hutchings
On x32, gcc predefines __x86_64__ but long is only 32-bit. Use __ILP32__ to distinguish x32. Fixes this compiler error in perf: /«PKGBUILDDIR»/tools/include/asm-generic/bitops/__ffs.h: In function '__ffs': /«PKGBUILDDIR»/tools/include/asm-generic/bitops/__ffs.h:19:8: error: right shift count