From 72b310630fd84e109feeb5be47c4b2245937069b Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Tue, 19 Mar 2013 17:57:14 -0700 Subject: [PATCH] compat: embrace LINUX_BACKPORT() for crc8 1 2.6.24 [ OK ] 2 2.6.25 [ OK ] 3 2.6.26 [ OK ] 4 2.6.27 [ OK ] 5 2.6.28 [ OK ] 6 2.6.29 [ OK ] 7 2.6.30 [ OK ] 8 2.6.31 [ OK ] 9 2.6.32 [ OK ] 10 2.6.33 [ OK ] 11 2.6.34 [ OK ] 12 2.6.35 [ OK ] 13 2.6.36 [ OK ] 14 2.6.37 [ OK ] 15 2.6.38 [ OK ] 16 2.6.39 [ OK ] 17 3.0.65 [ OK ] 18 3.1.10 [ OK ] 19 3.2.38 [ OK ] 20 3.3.8 [ OK ] 21 3.4.32 [ OK ] 22 3.5.7 [ OK ] 23 3.6.11 [ OK ] 24 3.7.9 [ OK ] 25 3.8.0 [ OK ] 26 3.9-rc1 [ OK ] Signed-off-by: Luis R. Rodriguez --- include/linux/crc8.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/crc8.h b/include/linux/crc8.h index 13c8dabb0441..f0a92ef16a5c 100644 --- a/include/linux/crc8.h +++ b/include/linux/crc8.h @@ -52,6 +52,7 @@ * * - lsb first: poly = 10101011(1) = 0xAB */ +#define crc8_populate_lsb LINUX_BACKPORT(crc8_populate_lsb) void crc8_populate_lsb(u8 table[CRC8_TABLE_SIZE], u8 polynomial); /** @@ -70,6 +71,7 @@ void crc8_populate_lsb(u8 table[CRC8_TABLE_SIZE], u8 polynomial); * * - msb first: poly = (1)11010101 = 0xD5 */ +#define crc8_populate_msb LINUX_BACKPORT(crc8_populate_msb) void crc8_populate_msb(u8 table[CRC8_TABLE_SIZE], u8 polynomial); /** @@ -96,6 +98,7 @@ void crc8_populate_msb(u8 table[CRC8_TABLE_SIZE], u8 polynomial); * Williams, Ross N., rossross.net * (see URL http://www.ross.net/crc/download/crc_v3.txt). */ +#define crc8 LINUX_BACKPORT(crc8) u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc); #endif /* __CRC8_H_ */ -- 2.30.2