From patchwork Thu Feb 18 14:01:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102750 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp604491lbl; Thu, 18 Feb 2016 06:03:35 -0800 (PST) X-Received: by 10.66.225.177 with SMTP id rl17mr10387435pac.46.1455804215700; Thu, 18 Feb 2016 06:03:35 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m23si9609804pfi.250.2016.02.18.06.03.35; Thu, 18 Feb 2016 06:03:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946141AbcBRODd (ORCPT + 30 others); Thu, 18 Feb 2016 09:03:33 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:65289 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1425456AbcBRODb (ORCPT ); Thu, 18 Feb 2016 09:03:31 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0MduSz-1aJxvC2D53-00PefC; Thu, 18 Feb 2016 15:02:59 +0100 From: Arnd Bergmann To: Russell King Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Ard Biesheuvel , Nicolas Pitre , Jon Medhurst , Marc Zyngier , Linus Walleij , Maxime Coquelin stm32 , linux-kernel@vger.kernel.org Subject: [PATCH 1/9] ARM: ARMv7-M uses BE-8, not BE-32 Date: Thu, 18 Feb 2016 15:01:53 +0100 Message-Id: <1455804123-2526139-2-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1455804123-2526139-1-git-send-email-arnd@arndb.de> References: <1455804123-2526139-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:eTIOQ0H3Z3nTqaWm+7g27cJbf1cESmHJzILz4N6HWyIPoOr4/Xa hXKVWyMV3xjQdZ1V7VM5Dd8M+mEhHSoZDlcl/BmRu5jNuq7Uks1fcOC7eJtPoCrwceLG63r CnvqSjXtNWZsD0UsYIClvMkRSXy/ug/JQF9y85vNm+ec7vkDJsKbjaJQ/biaN6ExJ07Ngj9 fTPiNwhs18NqnQlSgE7Sg== X-UI-Out-Filterresults: notjunk:1; V01:K0:zAQaDq1Z8Yo=:3CADz4c7sqESJI/IlQRy8Y wSAeJT1r5i4YJ+tP5G6aOVVU4rrwI19msembjRXeNPY8x9QZ8vFsHKyNtwtzaOHl0pINewTBG K7Pe7NVpAURhT0/btJPqlz0bsnCnAIVpI5tsRbK8dHbMe6g+SBf08j1yLlfUuKWG2POdrR/gC Zlacz0oCW46kZut+Is5m99msIDqGcETQQQicIFu3yAsCIHfuefO4/coPsCx2WSdh4+5Zt3RMq N7qBB9o22DO2EdogmWcktPmg5cyW7/N0QJ9g76PvlwToES5uuyNwy1Yd0zVirTwXOsvd2rVuQ c9QFddD8MHTddpDqF/14Hoe3Yvdm6MSSIXmPhyquGezfHYVXiOjUAdndTy+6gcrrOETWBT7qx qJdB0+bK/xRusK1RJJibLNvOhYt+8f5Z9P73crKbO0NtV2fioa2Q0RQ7XnZvOuuWB58jXc4Ih Z9QrpkJe7my27xHeuGtaiwsRzFYoHdREq1JcDnP1xPAKbdjsSiYbtrpruDA6kuiIfP5b/5KwS +9Spz/LAeQSbwYJ/CNfOAp6jrX15zkWjqdKF9jnsYngcVpinggaxjbiFpkFzbaLmAtkW5di9a IytVdHBQCPPgtJuWgXHMiBX4VUwQfaDZGPe3kErYzRUFLeODW6/i+gKUxvNEhS4SGk6SSXlKX 3Gzukjupupfuu8N8MrbfIQOdPGSLtGcL+qGL/7mZw/hSlXIetFcBdaRvBjuwtM7q589k= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When configuring the kernel for big-endian, we set either BE-8 or BE-32 based on the CPU architecture level. Until linux-4.4, we did not have any ARMv7-M platform allowing big-endian builds, but now i.MX/Vybrid is in that category, adn we get a build error because of this: arch/arm/kernel/module-plts.c: In function 'get_module_plt': arch/arm/kernel/module-plts.c:60:46: error: implicit declaration of function '__opcode_to_mem_thumb32' [-Werror=implicit-function-declaration] This comes down to picking the wrong default, ARMv7-M uses BE8 like ARMv7-A does. Changing the default gets the kernel to compile and presumably works. Signed-off-by: Arnd Bergmann --- arch/arm/mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.0 diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index 55347662e5ed..ff1637365494 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig @@ -723,7 +723,7 @@ config CPU_BIG_ENDIAN config CPU_ENDIAN_BE8 bool depends on CPU_BIG_ENDIAN - default CPU_V6 || CPU_V6K || CPU_V7 + default CPU_V6 || CPU_V6K || CPU_V7 || CPU_V7M help Support for the BE-8 (big-endian) mode on ARMv6 and ARMv7 processors.