diff options
author | Pali Rohár <pali@kernel.org> | 2022-04-12 11:20:43 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-21 14:32:40 -0400 |
commit | 4f0e77f8f098753bd9835d5a31c435aaab79dd86 (patch) | |
tree | 6d7061bd3a15d4f71e8ea1cb28309ab2584aa62f /fs/ext4/ext4_common.h | |
parent | 1a47e6d47c7184b116bb58e8451dc0d4f141a609 (diff) | |
download | u-boot-4f0e77f8f098753bd9835d5a31c435aaab79dd86.zip u-boot-4f0e77f8f098753bd9835d5a31c435aaab79dd86.tar.gz u-boot-4f0e77f8f098753bd9835d5a31c435aaab79dd86.tar.bz2 |
fs: ext4: Use CRC-16 implementation from linux/crc16.h
Implementation in linux/crc16.h provides standard CRC-16 algorithm with
polynomial x^16 + x^15 + x^2 + 1. Use it and remove duplicate ext4 CRC-16
specific code.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'fs/ext4/ext4_common.h')
-rw-r--r-- | fs/ext4/ext4_common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4_common.h b/fs/ext4/ext4_common.h index beaee9c..504c708 100644 --- a/fs/ext4/ext4_common.h +++ b/fs/ext4/ext4_common.h @@ -27,7 +27,7 @@ #include <linux/errno.h> #if defined(CONFIG_EXT4_WRITE) #include "ext4_journal.h" -#include "crc16.h" +#include <linux/crc16.h> #endif #define YES 1 |