summaryrefslogtreecommitdiff
path: root/include/linux/crc-t10dif.h
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2014-09-27 03:20:07 +0400
committerJens Axboe <axboe@fb.com>2014-09-27 19:14:59 +0400
commit2341c2f8c33196d02cf5a721746eea4e3c06674a (patch)
treecd51e37c084f016ea05a253b7b9041866d2e12fb /include/linux/crc-t10dif.h
parent4eaf99beadcefbf126fa05e66fb40fca999e09fd (diff)
downloadlinux-2341c2f8c33196d02cf5a721746eea4e3c06674a.tar.xz
block: Add T10 Protection Information functions
The T10 Protection Information format is also used by some devices that do not go through the SCSI layer (virtual block devices, NVMe). Relocate the relevant functions to a block layer library that can be used without involving SCSI. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/crc-t10dif.h')
-rw-r--r--include/linux/crc-t10dif.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/crc-t10dif.h b/include/linux/crc-t10dif.h
index b3cb71f0d3b0..cf53d0773ce3 100644
--- a/include/linux/crc-t10dif.h
+++ b/include/linux/crc-t10dif.h
@@ -6,7 +6,8 @@
#define CRC_T10DIF_DIGEST_SIZE 2
#define CRC_T10DIF_BLOCK_SIZE 1
-__u16 crc_t10dif_generic(__u16 crc, const unsigned char *buffer, size_t len);
-__u16 crc_t10dif(unsigned char const *, size_t);
+extern __u16 crc_t10dif_generic(__u16 crc, const unsigned char *buffer,
+ size_t len);
+extern __u16 crc_t10dif(unsigned char const *, size_t);
#endif