Skip to content

Commit 345dac3

Browse files
arndbRussell King (Oracle)
authored andcommitted
ARM: 9136/1: ARMv7-M uses BE-8, not BE-32
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/[email protected]/ Tested-by: Vladimir Murzin <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
1 parent 3583ab2 commit 345dac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/mm/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ config CPU_BIG_ENDIAN
750750
config CPU_ENDIAN_BE8
751751
bool
752752
depends on CPU_BIG_ENDIAN
753-
default CPU_V6 || CPU_V6K || CPU_V7
753+
default CPU_V6 || CPU_V6K || CPU_V7 || CPU_V7M
754754
help
755755
Support for the BE-8 (big-endian) mode on ARMv6 and ARMv7 processors.
756756

0 commit comments

Comments
 (0)