]> git.itanic.dy.fi Git - linux-stable/commitdiff
arm64: vdso32: drop test for -march=armv8-a
authorNick Desaulniers <ndesaulniers@google.com>
Tue, 19 Oct 2021 22:36:44 +0000 (15:36 -0700)
committerWill Deacon <will@kernel.org>
Thu, 21 Oct 2021 09:31:38 +0000 (10:31 +0100)
As Arnd points out:
  gcc-4.8 already supported -march=armv8, and we require gcc-5.1 now, so
  both this #if/#else construct and the corresponding
  "cc32-option,-march=armv8-a" check should be obsolete now.

Link: https://lore.kernel.org/lkml/CAK8P3a3UBEJ0Py2ycz=rHfgog8g3mCOeQOwO0Gmp-iz6Uxkapg@mail.gmail.com/
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20211019223646.1146945-3-ndesaulniers@google.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/vdso/compat_barrier.h
arch/arm64/kernel/vdso32/Makefile

index fb60a88b5ed41f09ab6a89f3e8a8dc227a73b8c3..3ac35f4a667cfc8c03fb6b6913c5a02b230a1659 100644 (file)
 
 #define dmb(option) __asm__ __volatile__ ("dmb " #option : : : "memory")
 
-#if __LINUX_ARM_ARCH__ >= 8
 #define aarch32_smp_mb()       dmb(ish)
 #define aarch32_smp_rmb()      dmb(ishld)
 #define aarch32_smp_wmb()      dmb(ishst)
-#else
-#define aarch32_smp_mb()       dmb(ish)
-#define aarch32_smp_rmb()      aarch32_smp_mb()
-#define aarch32_smp_wmb()      dmb(ishst)
-#endif
-
 
 #undef smp_mb
 #undef smp_rmb
index 89299a26638be5fefe870fc697373edd9a7f4484..1407516e041e2d34688562427ec528784ca1b4de 100644 (file)
@@ -65,13 +65,7 @@ endif
 # From arm vDSO Makefile
 VDSO_CAFLAGS += -fPIC -fno-builtin -fno-stack-protector
 VDSO_CAFLAGS += -DDISABLE_BRANCH_PROFILING
-
-
-# Try to compile for ARMv8. If the compiler is too old and doesn't support it,
-# fall back to v7. There is no easy way to check for what architecture the code
-# is being compiled, so define a macro specifying that (see arch/arm/Makefile).
-VDSO_CAFLAGS += $(call cc32-option,-march=armv8-a -D__LINUX_ARM_ARCH__=8,\
-                                   -march=armv7-a -D__LINUX_ARM_ARCH__=7)
+VDSO_CAFLAGS += -march=armv8-a
 
 VDSO_CFLAGS := $(VDSO_CAFLAGS)
 VDSO_CFLAGS += -DENABLE_COMPAT_VDSO=1