aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2025-02-07 18:49:06 -0800
committerEric Biggers <ebiggers@google.com>2025-02-08 20:06:30 -0800
commit92ef2ce86ac95f2d25673854d89f13c136a0aff3 (patch)
tree703f6d95d0c56849b3b6177a96c9d0bef28f518c
parentlib/crc32: remove obsolete CRC32 options from defconfig files (diff)
downloadwireguard-linux-92ef2ce86ac95f2d25673854d89f13c136a0aff3.tar.xz
wireguard-linux-92ef2ce86ac95f2d25673854d89f13c136a0aff3.zip
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>
Diffstat (limited to '')
-rw-r--r--arch/mips/lib/crc32-mips.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/mips/lib/crc32-mips.c b/arch/mips/lib/crc32-mips.c
index 083e5d693a16..100ac586aadb 100644
--- a/arch/mips/lib/crc32-mips.c
+++ b/arch/mips/lib/crc32-mips.c
@@ -16,15 +16,6 @@
#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, \