Skip to content

Commit 92ef2ce

Browse files
committed
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 <[email protected]> Closes: https://lore.kernel.org/r/20250207224233.GA1261167@ax162 Acked-by: Ard Biesheuvel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Eric Biggers <[email protected]>
1 parent 79fbe85 commit 92ef2ce

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

arch/mips/lib/crc32-mips.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@
1616
#include <asm/mipsregs.h>
1717
#include <linux/unaligned.h>
1818

19-
enum crc_op_size {
20-
b, h, w, d,
21-
};
22-
23-
enum crc_type {
24-
crc32,
25-
crc32c,
26-
};
27-
2819
#ifndef TOOLCHAIN_SUPPORTS_CRC
2920
#define _ASM_SET_CRC(OP, SZ, TYPE) \
3021
_ASM_MACRO_3R(OP, rt, rs, rt2, \

0 commit comments

Comments
 (0)