]> asedeno.scripts.mit.edu Git - linux.git/commit
lib/crc32: make core crc32() routines weak so they can be overridden
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 27 Aug 2018 11:02:42 +0000 (13:02 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 10 Sep 2018 15:09:27 +0000 (16:09 +0100)
commit9784d82db3eb3de7851e5a3f4a2481607de2452c
tree4af04116f41e1e1ca3142f1e5ccb6bb8f015df77
parentcbbac1c3e6a80f32a692703d764f432d357378ec
lib/crc32: make core crc32() routines weak so they can be overridden

Allow architectures to drop in accelerated CRC32 routines by making
the crc32_le/__crc32c_le entry points weak, and exposing non-weak
aliases for them that may be used by the accelerated versions as
fallbacks in case the instructions they rely upon are not available.

Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
lib/crc32.c