]> git.baikalelectronics.ru Git - kernel.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)
commitadfbc1f3f7747a522bcfb250f7fb536b4d96f165
tree4af04116f41e1e1ca3142f1e5ccb6bb8f015df77
parent40bb813d96f41279fd1912aed9cf782fece2a775
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