Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966392AbcCPKYb (ORCPT ); Wed, 16 Mar 2016 06:24:31 -0400 Received: from ozlabs.org ([103.22.144.67]:45975 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966015AbcCPKYa (ORCPT ); Wed, 16 Mar 2016 06:24:30 -0400 X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 2e098dcee6208a690f73e11feb29d181cae7d978 In-Reply-To: <20160315130750.0E43C1A2375@localhost.localdomain> To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Scott Wood From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [v2] powerpc/8xx: Fix do_mtspr_cpu6 build on older compilers Message-Id: <3qQ6zc2Nqrz9sRB@ozlabs.org> Date: Wed, 16 Mar 2016 21:24:28 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 478 Lines: 15 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: Christophe Leroy > Cc: Scott Wood Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/2e098dcee6208a690f73e11feb cheers