package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / bcache-tools / 0001-Don-t-inline-crc64-for-gcc-5-compatability.patch
blob1a437a84fbbf99ba8e1c85bab6e99acb1960cc24
1 Don't inline crc64 for gcc-5 compatability
3 This patch is backported from Debian and it fixes the following error:
5 bcache.c:125:9: warning: 'crc_table' is static but used in inline
6 function 'crc64' which is not static
7 ...
8 make-bcache.c:277: undefined reference to `crc64'
10 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
12 From: David Mohr <david@mcbf.net>
13 Date: Tue, 26 May 2015 20:34:31 -0600
14 Subject: Don't inline crc64 for gcc-5 compatability
16 Forwarded: http://article.gmane.org/gmane.linux.kernel.bcache.devel/2919
18 By James Cowgill, see Debian bug #777798
19 ---
20 bcache.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
23 diff --git a/bcache.c b/bcache.c
24 index 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
31 -inline uint64_t crc64(const void *_data, size_t len)
32 +uint64_t crc64(const void *_data, size_t len)
34 uint64_t crc = 0xFFFFFFFFFFFFFFFFULL;
35 const unsigned char *data = _data;