diff options
| author | Eric Biggers <ebiggers@google.com> | 2025-05-13 05:21:15 +0300 |
|---|---|---|
| committer | Eric Biggers <ebiggers@google.com> | 2025-05-14 06:37:16 +0300 |
| commit | 3937f6db6e932c560a0f9ee2cd2a4fdcc314dadf (patch) | |
| tree | 6ef74bcac438f1140c7c5d035984f339ed0fc489 /include/linux | |
| parent | 0769ebe279c0f07f5f01ef2dca9f425803039755 (diff) | |
| download | linux-3937f6db6e932c560a0f9ee2cd2a4fdcc314dadf.tar.xz | |
lib/crc16: unexport crc16_table and crc16_byte()
Now that neither crc16_table nor crc16_byte() is used outside
lib/crc16.c, fold them into lib/crc16.c.
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250513022115.39109-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/crc16.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/linux/crc16.h b/include/linux/crc16.h index 9fa74529b317..b861d969b161 100644 --- a/include/linux/crc16.h +++ b/include/linux/crc16.h @@ -15,14 +15,7 @@ #include <linux/types.h> -extern u16 const crc16_table[256]; - -extern u16 crc16(u16 crc, const u8 *buffer, size_t len); - -static inline u16 crc16_byte(u16 crc, const u8 data) -{ - return (crc >> 8) ^ crc16_table[(crc ^ data) & 0xff]; -} +u16 crc16(u16 crc, const u8 *p, size_t len); #endif /* __CRC16_H */ |
