xref: /linux/include/linux/crc-t10dif.h (revision a578dd095dfe8b56c167201d9aea43e47d27f807)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_CRC_T10DIF_H
3 #define _LINUX_CRC_T10DIF_H
4 
5 #include <linux/types.h>
6 
7 u16 crc_t10dif_update(u16 crc, const u8 *p, size_t len);
8 
crc_t10dif(const u8 * p,size_t len)9 static inline u16 crc_t10dif(const u8 *p, size_t len)
10 {
11 	return crc_t10dif_update(0, p, len);
12 }
13 
14 #endif
15