lib/crc: crc32: Change crc32() from macro to inline function and remove cast
authorEric Biggers <ebiggers@kernel.org>
Thu, 19 Jun 2025 18:34:13 +0000 (11:34 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 30 Jun 2025 16:31:57 +0000 (09:31 -0700)
commit0b5a58c078167f73d10711734cdc8ea592561ca9
treeb24a150a14a438831dfb00999335f7787526ddb8
parenta98e0d69d544ec6b1510940c901867b4ecd8ba1d
lib/crc: crc32: Change crc32() from macro to inline function and remove cast

There's no need for crc32() to be a macro.  Make it an inline function
instead.  Also, remove the cast of the data pointer to
'unsigned char const *', which is no longer necessary now that the type
used in the function prototype is 'const void *'.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250619183414.100082-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
include/linux/crc32.h