]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: 8342/1: VDSO: depend on CPU_V7
authorNathan Lynch <nathan_lynch@mentor.com>
Fri, 17 Apr 2015 20:51:38 +0000 (21:51 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 17 Apr 2015 23:23:25 +0000 (00:23 +0100)
When targeting ARMv3 (e.g. rpc) and enabling CONFIG_VDSO we get:

arch/arm/vdso/datapage.S:13: Error: selected processor does not
support ARM mode `bx lr'

One fix considered was to use 'ldr pc,lr' for such configurations, but
since the VDSO is unlikely to be useful for pre-v7 hardware, just make
it depend on CONFIG_CPU_V7.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/Kconfig

index 8a5f1e644104922ad427e7abb33c63144baf9174..16ae9051b262c146fcbcaa96bc1d2a7e32c73c67 100644 (file)
@@ -827,7 +827,7 @@ config KUSER_HELPERS
 
 config VDSO
        bool "Enable VDSO for acceleration of some system calls"
-       depends on AEABI && MMU
+       depends on AEABI && MMU && CPU_V7
        default y if ARM_ARCH_TIMER
        select GENERIC_TIME_VSYSCALL
        help