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)9static inline u16 crc_t10dif(const u8 *p, size_t len) 10 { 11 return crc_t10dif_update(0, p, len); 12 } 13 14 #endif 15