From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23108C433F5 for ; Tue, 9 Nov 2021 01:27:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D3F36108E for ; Tue, 9 Nov 2021 01:27:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243436AbhKIBaM (ORCPT ); Mon, 8 Nov 2021 20:30:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:50390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243559AbhKIBXZ (ORCPT ); Mon, 8 Nov 2021 20:23:25 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5CAC961A62; Tue, 9 Nov 2021 01:09:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636420149; bh=Ww8FUc4RMyDT+HCM1mzCfA63nNcir66e/QBxVxlnUXw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cMYkKen7KuuXmY9ERnoVw7lhPsvXZ7uOyjCE3EG3ziuM/MEGvuiK+FC1FPkmplINX SxrJJqnu5yULRPBQ/5h/09F449VxbQCsLnM9ocDNHc1ZkYdnuF+nMNPv0WkYupeNVg Tgdbp5oF/7gZWvcwPlaQAw6xZSmL24OPMWM8A2rxqgbf1eXOtEPYGwUFJAKJhwYisR LPr2o9/KcUEdoGGWYLUshPWuhBsHnZwJYg7BO2CUDvg2lXU9CCdtpjkl0h5LuwvrlU cZ7/VdFO5ROvEnTHgzxneNT+hAj3+ViFOHPUxqWOUAmBNlzXSPV8nPPYF2NLgTBfXS bUA6wB2665oyw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnd Bergmann , Vladimir Murzin , Russell King , Sasha Levin , linux@armlinux.org.uk, ndesaulniers@google.com, ardb@kernel.org, nathan@kernel.org, wangkefeng.wang@huawei.com, u.kleine-koenig@pengutronix.de, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 4.9 30/33] ARM: 9136/1: ARMv7-M uses BE-8, not BE-32 Date: Mon, 8 Nov 2021 20:08:04 -0500 Message-Id: <20211109010807.1191567-30-sashal@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211109010807.1191567-1-sashal@kernel.org> References: <20211109010807.1191567-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 345dac33f58894a56d17b92a41be10e16585ceff ] 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. https://lore.kernel.org/all/1455804123-2526139-2-git-send-email-arnd@arndb.de/ Tested-by: Vladimir Murzin Signed-off-by: Arnd Bergmann Signed-off-by: Russell King (Oracle) Signed-off-by: Sasha Levin --- arch/arm/mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index 7f3760fa9c154..93623627a0b68 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig @@ -731,7 +731,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. -- 2.33.0