Skip to content

Commit 7177089

Browse files
SiFiveHollandakpm00
authored andcommitted
arm64: crypto: use CC_FLAGS_FPU for NEON CFLAGS
Now that CC_FLAGS_FPU is exported and can be used anywhere in the source tree, use it instead of duplicating the flags here. Link: https://lkml.kernel.org/r/20240329072441.591471-6-samuel.holland@sifive.com Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Acked-by: Christian König <christian.koenig@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: Borislav Petkov (AMD) <bp@alien8.de> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Huacai Chen <chenhuacai@kernel.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Masahiro Yamada <masahiroy@kernel.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Nathan Chancellor <nathan@kernel.org> Cc: Nicolas Schier <nicolas@fjasle.eu> Cc: Palmer Dabbelt <palmer@rivosinc.com> Cc: Russell King <linux@armlinux.org.uk> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: WANG Xuerui <git@xen0n.name> Cc: Will Deacon <will@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 71883ae commit 7177089

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

arch/arm64/lib/Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ lib-y := clear_user.o delay.o copy_from_user.o \
77

88
ifeq ($(CONFIG_KERNEL_MODE_NEON), y)
99
obj-$(CONFIG_XOR_BLOCKS) += xor-neon.o
10-
CFLAGS_REMOVE_xor-neon.o += -mgeneral-regs-only
11-
CFLAGS_xor-neon.o += -ffreestanding
12-
# Enable <arm_neon.h>
13-
CFLAGS_xor-neon.o += -isystem $(shell $(CC) -print-file-name=include)
10+
CFLAGS_xor-neon.o += $(CC_FLAGS_FPU)
11+
CFLAGS_REMOVE_xor-neon.o += $(CC_FLAGS_NO_FPU)
1412
endif
1513

1614
lib-$(CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE) += uaccess_flushcache.o

0 commit comments

Comments
 (0)