Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5009091pxb; Tue, 28 Sep 2021 08:44:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy66yfxJfSt1TDkc0zPMAGJcpcPhJeL7IfEkfkHprIvz2+EYe8rAIhvAubvKX6iJhwm9sz/ X-Received: by 2002:a05:6a00:216f:b0:44b:6212:4967 with SMTP id r15-20020a056a00216f00b0044b62124967mr6177467pff.23.1632843887409; Tue, 28 Sep 2021 08:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632843887; cv=none; d=google.com; s=arc-20160816; b=pbXUamV190qHNske5f+oOSty4in9WJvMyJG2DQUEXugRd8bbHnIcJHnrqfrGZ2Mif3 gs+pywiU8fi/xWVmQpZ7Wyt3Uf8uaPc8O9rcbF5mQZpLDLKIGg/oCYMPPp6pk91YLZ8F /Uh4haS5TR/c3/QKBVoxV2A1VRazIr4GDZKpfklroiTfSPnuvEksg9DIYIGVfHqq7GYD PRWEx8y9X4hqRQETcAZidITrMXjtJvzu+9L4ltYWzT+ZW7AHigFyRvzSwDWvm+fwZO0y T63uy4roSzbxQRreRs0C/L6wnm0BlAv6TyJWVk9BKzXMGiSGzOwZ0d4K/EslMRl1BgSG XXjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=meRRKdENxvVoVuWbgBexOh7fFc7t0BkAUUpgFZ16RJ4=; b=ryqohvXGjaNCkOu+wHkXEj4ragyFD2IZvgSDy6v+oshTOLXW4GCqny1O2+FQeXPeuX wgI66SDe/2o5uWbGhydV2nqbvBA0NOBvZ3+Aid6rKV8m8hvRnKnCxwFRCFA0UsBnA9SA 8Be5dbbaDG3H55dinearH3PXIgxCNfXEvZ0TDWO5wzjp8vFyjgoEXWHiYPhPs6FQ+wHE ma/hW6Y1gL1KG7/xUXoEeDrLrU7OJJZDZp2cKkcvIyGhcuyOk8/zln3vZ05eZ/2wSzmC R5Mrh/jwd+JfhH6mavsZVjWLAP1dfmiJRxwmQUHlDQ1SaGdaOk3FyE4TZ/v7XBUKf/RW 9jAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qQp2Rc+g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m6si26067224pgu.387.2021.09.28.08.44.34; Tue, 28 Sep 2021 08:44:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qQp2Rc+g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241728AbhI1Pny (ORCPT + 99 others); Tue, 28 Sep 2021 11:43:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:60532 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241645AbhI1Pns (ORCPT ); Tue, 28 Sep 2021 11:43:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7F3786124A; Tue, 28 Sep 2021 15:42:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632843729; bh=CBSGNM1iI7xF61HbwvXZEXTVfHCXl92PwnqkdtpkV1g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qQp2Rc+gxrZWKUTIrH3JjAUcWeGw2yzUfkG+ML3ZsrcHhyepXKHUoBIyHe+tCWfjg PoFaLNBt4/esG+rK//VyRcFicAcaXx+Drl+WJ41c4yaJ2GPXhV757N23A/JW7rdnjC W5zgU+CGM+lZhxzn2Gq4wNZm+QKt5RrHC2vnPcqJaRmbWx0lrYCTZ0TM/gTgxd6rZk Ek5Dy1Ijyq0M0jd5nx0bT1pQI1s0FlGdXc/+o0hybiXKAirpQQgTipH/Bms3arCckk rbtlbVMXOBIQhudI4dshES6QJ5yeFXxnBYZ0S4936PrhGVQrVvNUAQt0k3FJN/wdlZ G8viTvkjBCcRw== From: Arnd Bergmann To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Ard Biesheuvel , Linus Walleij , Nathan Chancellor , Nick Desaulniers , llvm@lists.linux.dev, Vladimir Murzin Subject: [PATCH 05/14] ARM: ARMv7-M uses BE-8, not BE-32 Date: Tue, 28 Sep 2021 17:41:34 +0200 Message-Id: <20210928154143.2106903-6-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210928154143.2106903-1-arnd@kernel.org> References: <20210928154143.2106903-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann 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. Tested-by: Vladimir Murzin https://lore.kernel.org/all/1455804123-2526139-2-git-send-email-arnd@arndb.de/ Signed-off-by: Arnd Bergmann --- 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 8355c3895894..82aa990c4180 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig @@ -750,7 +750,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.29.2