summaryrefslogtreecommitdiff
path: root/lib/crc/Makefile
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2025-06-07 23:04:46 +0300
committerEric Biggers <ebiggers@kernel.org>2025-06-30 19:31:57 +0300
commit2b7531b2a2037959ac81ff2c95e4557b30cfd253 (patch)
tree1f8cdd1ee8058b8a4a95eb778f2b1390c80d0611 /lib/crc/Makefile
parent530b304f00f278b3aa31bdfccf09b3ffb457a607 (diff)
downloadlinux-2b7531b2a2037959ac81ff2c95e4557b30cfd253.tar.xz
lib/crc: arm64: Migrate optimized CRC code into lib/crc/
Move the arm64-optimized CRC code from arch/arm64/lib/crc* into its new location in lib/crc/arm64/, and wire it up in the new way. This new way of organizing the CRC code eliminates the need to artificially split the code for each CRC variant into separate arch and generic modules, enabling better inlining and dead code elimination. For more details, see "lib/crc: Prepare for arch-optimized code in subdirs of lib/crc/". Reviewed-by: "Martin K. Petersen" <martin.petersen@oracle.com> Acked-by: Ingo Molnar <mingo@kernel.org> Acked-by: "Jason A. Donenfeld" <Jason@zx2c4.com> Link: https://lore.kernel.org/r/20250607200454.73587-5-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'lib/crc/Makefile')
-rw-r--r--lib/crc/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/crc/Makefile b/lib/crc/Makefile
index c72d351be6cb..8adff4ae1ba6 100644
--- a/lib/crc/Makefile
+++ b/lib/crc/Makefile
@@ -14,6 +14,7 @@ crc-t10dif-y := crc-t10dif-main.o
ifeq ($(CONFIG_CRC_T10DIF_ARCH),y)
CFLAGS_crc-t10dif-main.o += -I$(src)/$(SRCARCH)
crc-t10dif-$(CONFIG_ARM) += arm/crc-t10dif-core.o
+crc-t10dif-$(CONFIG_ARM64) += arm64/crc-t10dif-core.o
endif
obj-$(CONFIG_CRC32) += crc32.o
@@ -21,6 +22,7 @@ crc32-y := crc32-main.o
ifeq ($(CONFIG_CRC32_ARCH),y)
CFLAGS_crc32-main.o += -I$(src)/$(SRCARCH)
crc32-$(CONFIG_ARM) += arm/crc32-core.o
+crc32-$(CONFIG_ARM64) += arm64/crc32-core.o
endif
obj-$(CONFIG_CRC64) += crc64.o