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 46D61C433FE for ; Tue, 9 Nov 2021 01:36:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0F361610A0 for ; Tue, 9 Nov 2021 01:36:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0F361610A0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AsvZWaICAu6g40n+UCqDmQJ4JDNTrHcV/vzhvX+A2Lg=; b=4UdqoZGYgmmMJ3 6dF8Z8FWIEiAjHyeBdzfNvz5m/Qa85ehcLtbf4QG1wZ79duUj7l0CUcBL2FeBDjfQBNK4gVupHnV9 fcLQNsat/cvOw4Ap6zN5LEPvl/LZvQiEUDNQH20pH9QVGRLwyUq/gg/RXOglk2wtSWHUv74rLRN+V yBCP0Ip4aanPLtc8dfWX14Tj1WV2anygtj/ZLLUwCT6Lce3mKAGKwDjbM7FSiqbkvubV0cr1g7WEK GYy3299rCoEuk8ji4vEetkuwxHqND3Vdy4kM/dJc4KTE4Whn8vYufbPw8I6P55gyRux1VVhOuUnXC 1QMkQOZ8Z+FTeY2D8ctg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkG22-000NhU-IK; Tue, 09 Nov 2021 01:34:39 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkFcD-000DsZ-Ts for linux-arm-kernel@lists.infradead.org; Tue, 09 Nov 2021 01:07:59 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 18F5261B04; Tue, 9 Nov 2021 01:07:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636420077; bh=Zy38W5CTpAEf7I4j0dbwM7jDtaDo09QRwcXNRYFKqro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IED0ivkZAPCEPguncS7qTj+4avmxtrqLx5NOvIeRyOqPn6XuPFO5zGfMSSr/UAEzH hUiGP+0mfun479CfHf5UYJVE/sYgMT+6NtfOWFu7zaap6WkzazUAQ9T5+TxdnCxepZ aG8/0lQ9VGhnufq+plxwC1AF+Uqv/XyI/xJPl3OqFNuW7WlHPwXA4smc61oX+nYGg7 fuSfiXvmdd5Iga7Nz+gWRWpfndhVPMiciXo9F7ggM6s36y5kb3smzdGLzwVAVoG9yy kIJsoEHfwMIJKpLgjIgGzWGFZlLt/DW4uO9XQz55C+ytQnVNQFcba8INRvkeZhq+5n qrxUPGNPQtizw== 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, u.kleine-koenig@pengutronix.de, ardb@kernel.org, wangkefeng.wang@huawei.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 4.14 35/39] ARM: 9136/1: ARMv7-M uses BE-8, not BE-32 Date: Mon, 8 Nov 2021 20:06:45 -0500 Message-Id: <20211109010649.1191041-35-sashal@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211109010649.1191041-1-sashal@kernel.org> References: <20211109010649.1191041-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211108_170758_025360_55A2C4A9 X-CRM114-Status: GOOD ( 12.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 50e0b45a22dba..77fd4446b5fc8 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig @@ -757,7 +757,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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 4F519C433EF for ; Tue, 9 Nov 2021 01:22:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 356706187A for ; Tue, 9 Nov 2021 01:22:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238561AbhKIBZS (ORCPT ); Mon, 8 Nov 2021 20:25:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:47870 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242244AbhKIBTg (ORCPT ); Mon, 8 Nov 2021 20:19:36 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 18F5261B04; Tue, 9 Nov 2021 01:07:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636420077; bh=Zy38W5CTpAEf7I4j0dbwM7jDtaDo09QRwcXNRYFKqro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IED0ivkZAPCEPguncS7qTj+4avmxtrqLx5NOvIeRyOqPn6XuPFO5zGfMSSr/UAEzH hUiGP+0mfun479CfHf5UYJVE/sYgMT+6NtfOWFu7zaap6WkzazUAQ9T5+TxdnCxepZ aG8/0lQ9VGhnufq+plxwC1AF+Uqv/XyI/xJPl3OqFNuW7WlHPwXA4smc61oX+nYGg7 fuSfiXvmdd5Iga7Nz+gWRWpfndhVPMiciXo9F7ggM6s36y5kb3smzdGLzwVAVoG9yy kIJsoEHfwMIJKpLgjIgGzWGFZlLt/DW4uO9XQz55C+ytQnVNQFcba8INRvkeZhq+5n qrxUPGNPQtizw== 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, u.kleine-koenig@pengutronix.de, ardb@kernel.org, wangkefeng.wang@huawei.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 4.14 35/39] ARM: 9136/1: ARMv7-M uses BE-8, not BE-32 Date: Mon, 8 Nov 2021 20:06:45 -0500 Message-Id: <20211109010649.1191041-35-sashal@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211109010649.1191041-1-sashal@kernel.org> References: <20211109010649.1191041-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 50e0b45a22dba..77fd4446b5fc8 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig @@ -757,7 +757,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