From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Wed, 24 Sep 2014 11:16:24 +0200 Subject: [PATCH] arm, vt8500, LLVMLlinux: Use mcr instead of mcr% for mach-vt8500 In-Reply-To: <1411530284-28807-1-git-send-email-behanw@converseincode.com> References: <1411530284-28807-1-git-send-email-behanw@converseincode.com> Message-ID: <7810937.UX61PvX9nB@wuerfel> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tuesday 23 September 2014 20:44:44 Behan Webster wrote: > 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. Just for confirm: both forms are actually correct and we don't need this backported for stable, right? > Signed-off-by: Behan Webster > Reviewed-by: Mark Charlebois > Acked-by: Will Deacon Acked-by: Arnd Bergmann Tony, would you like to pick this one up and send it in a pull request to arm-soc, or should we apply it to fixes-non-critical directly? Arnd