summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBehan Webster <behanw@converseincode.com>2014-09-23 20:44:44 -0700
committerArnd Bergmann <arnd@arndb.de>2014-09-26 01:49:03 +0200
commit49dd0dcfd76091989a746968b7403e038a1953bf (patch)
tree80d85176def5ded95b4df98bd164db0e17e9a436 /arch
parentf18cf05038729a958732fbcc16730004dc1b84dd (diff)
downloadlinux-49dd0dcfd76091989a746968b7403e038a1953bf.tar.gz
linux-49dd0dcfd76091989a746968b7403e038a1953bf.tar.bz2
linux-49dd0dcfd76091989a746968b7403e038a1953bf.zip
arm, vt8500, LLVMLlinux: Use mcr instead of mcr% for mach-vt8500
The ASM below does not compile with clang and is not the way that the mcr command is used in other parts of the kernel. arch/arm/mach-vt8500/vt8500.c:72:11: error: invalid % escape in inline assembly string asm("mcr%? p15, 0, %0, c7, c0, 4" : : "r" (0)); ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. There are other forms that are supported on different ARM instruction sets but generally the kernel just uses mcr as it is supported in all ARM instruction sets. Signed-off-by: Behan Webster <behanw@converseincode.com> Reviewed-by: Mark Charlebois <charlebm@gmail.com> Acked-by: Will Deacon <will.deacon@arm.com> Acked-by: Tony Prisk <linux@prisktech.co.nz> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-vt8500/vt8500.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-vt8500/vt8500.c b/arch/arm/mach-vt8500/vt8500.c
index 2da7be31e7e2..3bc0dc9a4d69 100644
--- a/arch/arm/mach-vt8500/vt8500.c
+++ b/arch/arm/mach-vt8500/vt8500.c
@@ -69,7 +69,7 @@ static void vt8500_power_off(void)
{
local_irq_disable();
writew(5, pmc_base + VT8500_HCR_REG);
- asm("mcr%? p15, 0, %0, c7, c0, 4" : : "r" (0));
+ asm("mcr p15, 0, %0, c7, c0, 4" : : "r" (0));
}
static void __init vt8500_init(void)