Re: [v2] powerpc/8xx: Fix do_mtspr_cpu6 build on older compilers

2016-03-16 Thread Michael Ellerman
On Tue, 2016-15-03 at 13:07:49 UTC, Christophe Leroy wrote: > Some versions of GCC, reportedly before 4.8, fail with > arch/powerpc/mm/8xx_mmu.c:139:2: error: memory input 1 is not directly > addressable > > Change the one-element array into a simple variable to avoid this. > > Signed-off-by:

Re: [PATCH v2] powerpc/8xx: Fix do_mtspr_cpu6 build on older compilers

2016-03-15 Thread christophe leroy
Le 15/03/2016 18:41, Scott Wood a écrit : On Tue, 2016-03-15 at 14:07 +0100, Christophe Leroy wrote: Some versions of GCC, reportedly before 4.8, fail with arch/powerpc/mm/8xx_mmu.c:139:2: error: memory input 1 is not directly addressable "before 4.8" means "< 4.8", not "<= 4.8" -- did you

Re: [PATCH v2] powerpc/8xx: Fix do_mtspr_cpu6 build on older compilers

2016-03-15 Thread Scott Wood
On Tue, 2016-03-15 at 14:07 +0100, Christophe Leroy wrote: > Some versions of GCC, reportedly before 4.8, fail with > arch/powerpc/mm/8xx_mmu.c:139:2: error: memory input 1 is not directly > addressable "before 4.8" means "< 4.8", not "<= 4.8" -- did you mean "before 4.9"? > Change the

[PATCH v2] powerpc/8xx: Fix do_mtspr_cpu6 build on older compilers

2016-03-15 Thread Christophe Leroy
Some versions of GCC, reportedly before 4.8, fail with arch/powerpc/mm/8xx_mmu.c:139:2: error: memory input 1 is not directly addressable Change the one-element array into a simple variable to avoid this. Signed-off-by: Christophe Leroy Cc: Scott Wood