]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mips/crc32: remove unused enums
authorEric Biggers <ebiggers@google.com>
Sat, 8 Feb 2025 02:49:06 +0000 (18:49 -0800)
committerEric Biggers <ebiggers@google.com>
Sun, 9 Feb 2025 04:06:30 +0000 (20:06 -0800)
Remove enum crc_op_size and enum crc_type, since they are never actually
used.  Tokens with the names of the enum values do appear in the file,
but they are only used for token concatenation with the preprocessor.

This prevents a conflict with the addition of crc32c() to linux/crc32.h.

Reported-by: Nathan Chancellor <nathan@kernel.org>
Closes: https://lore.kernel.org/r/20250207224233.GA1261167@ax162
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250208024911.14936-2-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
arch/mips/lib/crc32-mips.c

index 083e5d693a1698ffe01a55066be4969cf5e11e7b..100ac586aadb2e3fef08390c189efb11ec624e83 100644 (file)
 #include <asm/mipsregs.h>
 #include <linux/unaligned.h>
 
-enum crc_op_size {
-       b, h, w, d,
-};
-
-enum crc_type {
-       crc32,
-       crc32c,
-};
-
 #ifndef TOOLCHAIN_SUPPORTS_CRC
 #define _ASM_SET_CRC(OP, SZ, TYPE)                                       \
 _ASM_MACRO_3R(OP, rt, rs, rt2,                                           \