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/[email protected] Signed-off-by: Samuel Holland <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Acked-by: Christian König <[email protected]> Cc: Alex Deucher <[email protected]> Cc: Borislav Petkov (AMD) <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Huacai Chen <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Nathan Chancellor <[email protected]> Cc: Nicolas Schier <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Russell King <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: WANG Xuerui <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
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)