Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-22 Thread Chen Gang
On 8/22/14 19:09, Michal Marek wrote: > Dne 13.8.2014 10:03, Geert Uytterhoeven napsal(a): >> CC kbuild >> >> On Wed, Aug 13, 2014 at 12:48 AM, Chen Gang wrote: >>> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig >>> index c49a775..0510a5d 100644 >>> --- a/arch/arm/Kconfig >>> +++

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-22 Thread Michal Marek
Dne 13.8.2014 10:03, Geert Uytterhoeven napsal(a): > CC kbuild > > On Wed, Aug 13, 2014 at 12:48 AM, Chen Gang wrote: >> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig >> index c49a775..0510a5d 100644 >> --- a/arch/arm/Kconfig >> +++ b/arch/arm/Kconfig >> @@ -199,6 +199,11 @@ config

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-22 Thread Chen Gang
On 8/22/14 19:09, Michal Marek wrote: Dne 13.8.2014 10:03, Geert Uytterhoeven napsal(a): CC kbuild On Wed, Aug 13, 2014 at 12:48 AM, Chen Gang gang.chen.5...@gmail.com wrote: diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index c49a775..0510a5d 100644 --- a/arch/arm/Kconfig +++

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-22 Thread Michal Marek
Dne 13.8.2014 10:03, Geert Uytterhoeven napsal(a): CC kbuild On Wed, Aug 13, 2014 at 12:48 AM, Chen Gang gang.chen.5...@gmail.com wrote: diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index c49a775..0510a5d 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -199,6 +199,11 @@ config

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-13 Thread Chen Gang
On 8/13/14 16:03, Geert Uytterhoeven wrote: > CC kbuild > > On Wed, Aug 13, 2014 at 12:48 AM, Chen Gang wrote: >> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig >> index c49a775..0510a5d 100644 >> --- a/arch/arm/Kconfig >> +++ b/arch/arm/Kconfig >> @@ -199,6 +199,11 @@ config

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-13 Thread Geert Uytterhoeven
CC kbuild On Wed, Aug 13, 2014 at 12:48 AM, Chen Gang wrote: > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index c49a775..0510a5d 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -199,6 +199,11 @@ config NEED_DMA_MAP_STATE > config ARCH_SUPPORTS_UPROBES > def_bool y

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-13 Thread Chen Gang
On 8/13/14 14:51, H. Peter Anvin wrote: > On 08/12/2014 10:32 PM, Chen Gang wrote: >> >> Yeah, we need. >> >>> The solution you suggest assumes that an arch is either little or big >>> endian. >>> But we cannot ignore the hybriads that can do both. >>> >> >> For the architectures which can do

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-13 Thread H. Peter Anvin
On 08/12/2014 10:32 PM, Chen Gang wrote: > > Yeah, we need. > >> The solution you suggest assumes that an arch is either little or big endian. >> But we cannot ignore the hybriads that can do both. >> > > For the architectures which can do both, for me, they are: sh, powerpc, > m32r, and mips

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-13 Thread H. Peter Anvin
On 08/12/2014 10:32 PM, Chen Gang wrote: Yeah, we need. The solution you suggest assumes that an arch is either little or big endian. But we cannot ignore the hybriads that can do both. For the architectures which can do both, for me, they are: sh, powerpc, m32r, and mips (may mark

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-13 Thread Chen Gang
On 8/13/14 14:51, H. Peter Anvin wrote: On 08/12/2014 10:32 PM, Chen Gang wrote: Yeah, we need. The solution you suggest assumes that an arch is either little or big endian. But we cannot ignore the hybriads that can do both. For the architectures which can do both, for me, they are:

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-13 Thread Geert Uytterhoeven
CC kbuild On Wed, Aug 13, 2014 at 12:48 AM, Chen Gang gang.chen.5...@gmail.com wrote: diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index c49a775..0510a5d 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -199,6 +199,11 @@ config NEED_DMA_MAP_STATE config ARCH_SUPPORTS_UPROBES

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-13 Thread Chen Gang
On 8/13/14 16:03, Geert Uytterhoeven wrote: CC kbuild On Wed, Aug 13, 2014 at 12:48 AM, Chen Gang gang.chen.5...@gmail.com wrote: diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index c49a775..0510a5d 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -199,6 +199,11 @@ config

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-12 Thread Chen Gang
On 8/13/14 13:08, Sam Ravnborg wrote: > On Wed, Aug 13, 2014 at 06:48:35AM +0800, Chen Gang wrote: >> x86 and ia64 are always little endian. And another architectures may be >> little endian: mips, sh, powerpc, and m32r (may mark CPU_LITTLE_ENDIAN >> explicitly); also arm(64) and c6x (which may

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-12 Thread Sam Ravnborg
On Wed, Aug 13, 2014 at 06:48:35AM +0800, Chen Gang wrote: > x86 and ia64 are always little endian. And another architectures may be > little endian: mips, sh, powerpc, and m32r (may mark CPU_LITTLE_ENDIAN > explicitly); also arm(64) and c6x (which may be !CPU_BIG_ENDIAN). > > Some drivers (e.g.

[PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-12 Thread Chen Gang
x86 and ia64 are always little endian. And another architectures may be little endian: mips, sh, powerpc, and m32r (may mark CPU_LITTLE_ENDIAN explicitly); also arm(64) and c6x (which may be !CPU_BIG_ENDIAN). Some drivers (e.g. some of "drivers/isdn/hisax") may only support little endian

[PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-12 Thread Chen Gang
x86 and ia64 are always little endian. And another architectures may be little endian: mips, sh, powerpc, and m32r (may mark CPU_LITTLE_ENDIAN explicitly); also arm(64) and c6x (which may be !CPU_BIG_ENDIAN). Some drivers (e.g. some of drivers/isdn/hisax) may only support little endian

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-12 Thread Sam Ravnborg
On Wed, Aug 13, 2014 at 06:48:35AM +0800, Chen Gang wrote: x86 and ia64 are always little endian. And another architectures may be little endian: mips, sh, powerpc, and m32r (may mark CPU_LITTLE_ENDIAN explicitly); also arm(64) and c6x (which may be !CPU_BIG_ENDIAN). Some drivers (e.g. some

Re: [PATCH v2] arch: Kconfig: Let all little endian architectures define CPU_LITTLE_ENDIAN explicitly

2014-08-12 Thread Chen Gang
On 8/13/14 13:08, Sam Ravnborg wrote: On Wed, Aug 13, 2014 at 06:48:35AM +0800, Chen Gang wrote: x86 and ia64 are always little endian. And another architectures may be little endian: mips, sh, powerpc, and m32r (may mark CPU_LITTLE_ENDIAN explicitly); also arm(64) and c6x (which may be