]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/8xx: Fix do_mtspr_cpu6() build on older compilers
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 15 Mar 2016 13:07:49 +0000 (14:07 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Mar 2016 04:22:40 +0000 (15:22 +1100)
commit65580578b78ae0cb7af0932b351f0b394d3f272f
treec7862e6351b7ff8b7fcb3e310063b53cf45d0dfc
parent7c896296d57e16094b1e65f6d1ab3cb44dbfe03f
powerpc/8xx: Fix do_mtspr_cpu6() build on older compilers

GCC < 4.9 is unable to build this, saying:

  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.

Fixes: 8e4befaf6e3f ("powerpc/8xx: Handle CPU6 ERRATA directly in mtspr() macro")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Cc: Scott Wood <oss@buserror.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/reg_8xx.h