From: Arnd Bergmann Date: Thu, 21 Mar 2013 21:51:14 +0000 (+0100) Subject: ARM: ux500: build hotplug.o for ARMv7-a X-Git-Tag: firefly_0821_release~3680^2~604^2~12^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f6f1bdac9d3006e246e82672322dcd7e7e0863fd;p=firefly-linux-kernel-4.4.55.git ARM: ux500: build hotplug.o for ARMv7-a If we try to build this file in a multiplatform configuration with ARMv6 enabled, gas complains about the dsb operation being undefined. Adding -march=armv7-a is safe because that code is only ever run on ux500, which is Cortex-A9. Signed-off-by: Arnd Bergmann Signed-off-by: Linus Walleij --- diff --git a/arch/arm/mach-ux500/Makefile b/arch/arm/mach-ux500/Makefile index 580a4db9e97d..bf9b6be5b180 100644 --- a/arch/arm/mach-ux500/Makefile +++ b/arch/arm/mach-ux500/Makefile @@ -15,3 +15,5 @@ obj-$(CONFIG_MACH_MOP500) += board-mop500.o board-mop500-sdi.o \ board-mop500-audio.o obj-$(CONFIG_SMP) += platsmp.o headsmp.o obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o + +CFLAGS_hotplug.o += -march=armv7-a