Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mips/crc32: remove unused enums

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>

-9
-9
arch/mips/lib/crc32-mips.c
··· 16 16 #include <asm/mipsregs.h> 17 17 #include <linux/unaligned.h> 18 18 19 - enum crc_op_size { 20 - b, h, w, d, 21 - }; 22 - 23 - enum crc_type { 24 - crc32, 25 - crc32c, 26 - }; 27 - 28 19 #ifndef TOOLCHAIN_SUPPORTS_CRC 29 20 #define _ASM_SET_CRC(OP, SZ, TYPE) \ 30 21 _ASM_MACRO_3R(OP, rt, rs, rt2, \