1Don't inline crc64 for gcc-5 compatability
2
3This patch is backported from Debian and it fixes the following error:
4
5bcache.c:125:9: warning: 'crc_table' is static but used in inline
6function 'crc64' which is not static
7...
8make-bcache.c:277: undefined reference to `crc64'
9
10Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
11
12From: David Mohr <david@mcbf.net>
13Date: Tue, 26 May 2015 20:34:31 -0600
14Subject: Don't inline crc64 for gcc-5 compatability
15
16Forwarded: http://article.gmane.org/gmane.linux.kernel.bcache.devel/2919
17
18By James Cowgill, see Debian bug #777798
19---
20 bcache.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23diff --git a/bcache.c b/bcache.c
24index 8f37445..8b4b986 100644
25--- a/bcache.c
26+++ b/bcache.c
27@@ -115,7 +115,7 @@ static const uint64_t crc_table[256] = {
28 	0x9AFCE626CE85B507ULL
29 };
30
31-inline uint64_t crc64(const void *_data, size_t len)
32+uint64_t crc64(const void *_data, size_t len)
33 {
34 	uint64_t crc = 0xFFFFFFFFFFFFFFFFULL;
35 	const unsigned char *data = _data;
36