mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: drop unnecessary WASM
@ 2019-03-05 22:18 Stefan Agner
  2019-03-05 22:18 ` [PATCH 2/2] ARM: drop -mauto-it Stefan Agner
  2019-03-05 23:39 ` [PATCH 1/2] ARM: drop unnecessary WASM Robin Murphy
  0 siblings, 2 replies; 9+ messages in thread
From: Stefan Agner @ 2019-03-05 22:18 UTC (permalink / raw)
  To: linux
  Cc: will.deacon, ndesaulniers, natechancellor, arnd, ard.biesheuvel,
	nicolas.pitre, thierry.reding, julien.thierry, mark.rutland,
	linux-kernel, linux-arm-kernel, Stefan Agner

The W macro for generating wide instructions when targeting Thumb-2
is not required for the preload data instructions (pld, pldw) since
they are only available as wide instructions. The GNU assembler seems
to work with or without the .w appended when compiling an Thumb-2
kernel. However, Clang's integrated assembler does not consider the
.w variants as valid instructions:

  ./arch/arm/include/asm/processor.h:133:5: error: invalid instruction
                          "pldw.w\t%a0 \n"
                           ^
  <inline asm>:2:1: note: instantiated into assembly here
  pldw.w  [r0]
  ^
  1 error generated.

Drop the macro to make sure non-wide variants of pld and pldw are
emitted in all cases.

Signed-off-by: Stefan Agner <stefan@agner.ch>
---
 arch/arm/include/asm/processor.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/include/asm/processor.h b/arch/arm/include/asm/processor.h
index 120f4c9bbfde..042d77cf686d 100644
--- a/arch/arm/include/asm/processor.h
+++ b/arch/arm/include/asm/processor.h
@@ -131,8 +131,8 @@ static inline void prefetchw(const void *ptr)
 	__asm__ __volatile__(
 		".arch_extension	mp\n"
 		__ALT_SMP_ASM(
-			WASM(pldw)		"\t%a0",
-			WASM(pld)		"\t%a0"
+			"pldw\t%a0",
+			"pld\t%a0"
 		)
 		:: "p" (ptr));
 }
-- 
2.20.1


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

end of thread, other threads:[~2019-03-17 15:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-05 22:18 [PATCH 1/2] ARM: drop unnecessary WASM Stefan Agner
2019-03-05 22:18 ` [PATCH 2/2] ARM: drop -mauto-it Stefan Agner
2019-03-05 22:21   ` Nick Desaulniers
2019-03-05 22:40     ` Stefan Agner
2019-03-05 23:20       ` Nick Desaulniers
2019-03-05 23:39 ` [PATCH 1/2] ARM: drop unnecessary WASM Robin Murphy
2019-03-06  0:47   ` Nick Desaulniers
2019-03-17 15:44     ` Stefan Agner
2019-03-06  7:58   ` Stefan Agner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome