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 0DEC8C433F5 for ; Tue, 9 Nov 2021 01:31:11 +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 C1D67610A8 for ; Tue, 9 Nov 2021 01:31:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C1D67610A8 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=05fw0yzWD6J0Khoc644hH+hGk4nZUuXvLmO6pbUuyYA=; b=10IyrJPhUf97/w SHJ12X1hu/zLqnkkD+UnZ8zRku91zpmEhXz8Ozo8GVOblVcKxZp22X4FaqSwdkYNCoj68NEWPl52n htT825toeSWcbv70G1fDpXqaNjP6UI1YXP2dLbf/kMtNI+oLlyFcHhqfGfK+k+AcSs675qhTNEA8N R2BN/ChuTp480oajG2WcdWaTIeMEMtaLpdcOoo0e79wU2dMU6/XjJybN6Z6MFr1XQX0+3ZsB7n4c2 4kG2BFk2Yv7kYpE+j7FqZRuBKaKchL7lj65lTDMOHqRoGZSLWkM4n+thN39OsrwW8ZHFg/Yc0JX9P igJlJWN5Dz8AW7xwZ06g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkFxM-000LiZ-PI; Tue, 09 Nov 2021 01:29:49 +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 1mkFar-000DIQ-0z for linux-arm-kernel@lists.infradead.org; Tue, 09 Nov 2021 01:06:34 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id E13AF61A3C; Tue, 9 Nov 2021 01:06:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636419992; bh=pUOlhPtSxwTDpxwkWaljN4R3YlOk7FLKyz4dRr4FNnc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Cy3ucWaEPLkBIPIgeiWwMNonlNU24t4+gkAeAGThThNJjm1qpVn381gSmiM42v+rG dleMmcLWWV84DbHdTMCx4ttIRV+Qd414IR7O8oypuTDr9VrlHf/2o2SLAHvq275pLC EZdeYz00B6SeKwXEPRiwot7etafYLoK2zgK9yJfwyR4f3jNaTz8TL21b4HPxwAMkDL LVjCOohspFaFd6ZfnmdOnnLFjtelQDzy97KUIDfnC1656ra2HLWkxy3iPVAqpN00Nb qqXhLd8bKc0DxndUo++ZlraMmRka0veum0fLPK3pCDhwea94ATFlSuWhO78umgqz9c kB7gSAKXxLaeg== 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, wangkefeng.wang@huawei.com, ardb@kernel.org, u.kleine-koenig@pengutronix.de, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 4.19 40/47] ARM: 9136/1: ARMv7-M uses BE-8, not BE-32 Date: Mon, 8 Nov 2021 12:50:24 -0500 Message-Id: <20211108175031.1190422-40-sashal@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211108175031.1190422-1-sashal@kernel.org> References: <20211108175031.1190422-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_170633_302254_5F93B390 X-CRM114-Status: GOOD ( 12.94 ) 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 b169e580bf829..9738c1f9737c9 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig @@ -751,7 +751,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