All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: hisi: Fix platmcpm compilation when ARMv6 is selected
@ 2014-09-24  9:07 Wei Xu
  2014-09-24 17:32 ` Olof Johansson
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Xu @ 2014-09-24  9:07 UTC (permalink / raw)
  To: linux-arm-kernel

When compiling with "ARCH=arm" and "allmodconfig",
with commit: 9cdc99919a95e8b54c1998b65bb1bfdabd47d27b [2/7] ARM: hisi: enable MCPM implementation
we will get:

   /tmp/cc6DjYjT.s: Assembler messages:
   /tmp/cc6DjYjT.s:63: Error: selected processor does not support ARM mode `ubfx r1,r0,#8,#8'
   /tmp/cc6DjYjT.s:761: Error: selected processor does not support ARM mode `isb '
   /tmp/cc6DjYjT.s:762: Error: selected processor does not support ARM mode `dsb '
   /tmp/cc6DjYjT.s:769: Error: selected processor does not support ARM mode `isb '
   /tmp/cc6DjYjT.s:775: Error: selected processor does not support ARM mode `isb '
   /tmp/cc6DjYjT.s:776: Error: selected processor does not support ARM mode `dsb '
   /tmp/cc6DjYjT.s:795: Error: selected processor does not support ARM mode `isb '
   /tmp/cc6DjYjT.s:801: Error: selected processor does not support ARM mode `isb '
   /tmp/cc6DjYjT.s:802: Error: selected processor does not support ARM mode `dsb '

Fix platmcpm compilation when ARMv6 is selected.

Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
---
 arch/arm/mach-hisi/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-hisi/Makefile b/arch/arm/mach-hisi/Makefile
index d64831e..e6a5b4d 100644
--- a/arch/arm/mach-hisi/Makefile
+++ b/arch/arm/mach-hisi/Makefile
@@ -2,6 +2,8 @@
 # Makefile for Hisilicon processors family
 #
 
+CFLAGS_platmcpm.o	:= -march=armv7-a
+
 obj-y	+= hisilicon.o
 obj-$(CONFIG_MCPM)	+= platmcpm.o
 obj-$(CONFIG_SMP)	+= platsmp.o hotplug.o headsmp.o
-- 1.8.1.2 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: hisi: Fix platmcpm compilation when ARMv6 is selected
  2014-09-24  9:07 [PATCH] ARM: hisi: Fix platmcpm compilation when ARMv6 is selected Wei Xu
@ 2014-09-24 17:32 ` Olof Johansson
  0 siblings, 0 replies; 2+ messages in thread
From: Olof Johansson @ 2014-09-24 17:32 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Sep 24, 2014 at 05:07:48PM +0800, Wei Xu wrote:
> When compiling with "ARCH=arm" and "allmodconfig",
> with commit: 9cdc99919a95e8b54c1998b65bb1bfdabd47d27b [2/7] ARM: hisi: enable MCPM implementation
> we will get:
> 
>    /tmp/cc6DjYjT.s: Assembler messages:
>    /tmp/cc6DjYjT.s:63: Error: selected processor does not support ARM mode `ubfx r1,r0,#8,#8'
>    /tmp/cc6DjYjT.s:761: Error: selected processor does not support ARM mode `isb '
>    /tmp/cc6DjYjT.s:762: Error: selected processor does not support ARM mode `dsb '
>    /tmp/cc6DjYjT.s:769: Error: selected processor does not support ARM mode `isb '
>    /tmp/cc6DjYjT.s:775: Error: selected processor does not support ARM mode `isb '
>    /tmp/cc6DjYjT.s:776: Error: selected processor does not support ARM mode `dsb '
>    /tmp/cc6DjYjT.s:795: Error: selected processor does not support ARM mode `isb '
>    /tmp/cc6DjYjT.s:801: Error: selected processor does not support ARM mode `isb '
>    /tmp/cc6DjYjT.s:802: Error: selected processor does not support ARM mode `dsb '
> 
> Fix platmcpm compilation when ARMv6 is selected.
> 
> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>

Thanks, applied.


-Olof

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-24 17:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-24  9:07 [PATCH] ARM: hisi: Fix platmcpm compilation when ARMv6 is selected Wei Xu
2014-09-24 17:32 ` Olof Johansson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.