]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: crc32 - remove "generic" from file and module names
authorEric Biggers <ebiggers@google.com>
Mon, 28 Apr 2025 16:24:58 +0000 (09:24 -0700)
committerEric Biggers <ebiggers@google.com>
Mon, 28 Apr 2025 17:02:45 +0000 (10:02 -0700)
commit46e3311607d6c18a760fba4afbd5d24d42abb0f3
treecb4996681c7a556174d01fcc8f4239ecff8f35a0
parent35984c730dea1a9fdd5d931f298849605850856a
crypto: crc32 - remove "generic" from file and module names

Since crc32_generic.c and crc32c_generic.c now expose both the generic
and architecture-optimized implementations via the crypto_shash API,
rather than just the generic implementations as they originally did,
remove the "generic" part of the filenames and module names:

    crypto/crc32-generic.c => crypto/crc32.c
    crypto/crc32c-generic.c => crypto/crc32c.c
    crc32-generic.ko => crc32-cryptoapi.ko
    crc32c-generic.ko => crc32c-cryptoapi.ko

The reason for adding the -cryptoapi suffixes to the module names is to
avoid a module name collision with crc32.ko which is the library API.

We could instead rename the library module to libcrc32.ko.  However,
while lib/crypto/ uses that convention, the rest of lib/ doesn't.  Since
the library API is the primary API for CRC-32, I'd like to keep the
unsuffixed name for it and make the Crypto API modules use a suffix.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250428162458.29732-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
crypto/Makefile
crypto/crc32.c [moved from crypto/crc32_generic.c with 100% similarity]
crypto/crc32c.c [moved from crypto/crc32c_generic.c with 100% similarity]