]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/crc32: update prototype for crc_pcl()
authorEric Biggers <ebiggers@google.com>
Mon, 2 Dec 2024 01:08:36 +0000 (17:08 -0800)
committerEric Biggers <ebiggers@google.com>
Mon, 2 Dec 2024 01:23:01 +0000 (17:23 -0800)
commit64e3586c0b61ec4800e820ff04f4c3360edbccd6
tree09111d8ebd58f09ade8077b3423b688c14d3bec7
parent0f60a8ace577f7629244ecf7c95105d4b704a462
x86/crc32: update prototype for crc_pcl()

- Change the len parameter from unsigned int to size_t, so that the
  library function which takes a size_t can safely use this code.

- Rename to crc32c_x86_3way() which is much clearer.

- Move the crc parameter to the front, as this is the usual convention.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20241202010844.144356-12-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
arch/x86/crypto/crc32c-intel_glue.c
arch/x86/crypto/crc32c-pcl-intel-asm_64.S