Skip to content

Commit f956dc8

Browse files
ardbiesheuvelEric Biggers
authored andcommitted
lib/crc: arm64: Use existing macros for kernel-mode FPU cflags
Use the existing CC_FPU_CFLAGS and CC_NO_FPU_CFLAGS to pass the appropriate compiler command line options for building kernel mode NEON intrinsics code. This is tidier, and will make it easier to reuse the code for 32-bit ARM. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20260330144630.33026-9-ardb@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
1 parent e0718ed commit f956dc8

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/crc/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ crc64-y := crc64-main.o
3939
ifeq ($(CONFIG_CRC64_ARCH),y)
4040
CFLAGS_crc64-main.o += -I$(src)/$(SRCARCH)
4141

42-
CFLAGS_REMOVE_arm64/crc64-neon-inner.o += -mgeneral-regs-only
43-
CFLAGS_arm64/crc64-neon-inner.o += -ffreestanding -march=armv8-a+crypto
44-
CFLAGS_arm64/crc64-neon-inner.o += -isystem $(shell $(CC) -print-file-name=include)
42+
CFLAGS_REMOVE_arm64/crc64-neon-inner.o += $(CC_FLAGS_NO_FPU)
43+
CFLAGS_arm64/crc64-neon-inner.o += $(CC_FLAGS_FPU) -march=armv8-a+crypto
4544
crc64-$(CONFIG_ARM64) += arm64/crc64-neon-inner.o
4645

4746
crc64-$(CONFIG_RISCV) += riscv/crc64_lsb.o riscv/crc64_msb.o

0 commit comments

Comments
 (0)