• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/bcache-tools/0001-Don-t-inline-crc64-for-gcc-5-compatability.patch
Vicente Olivert RieraVicente Olivert Riera committed 462843e013002 Dec 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Don't inline crc64 for gcc-5 compatability
2
​
3
This patch is backported from Debian and it fixes the following error:
4
​
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'
9
​
10
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
11
​
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
15
​
16
Forwarded: http://article.gmane.org/gmane.linux.kernel.bcache.devel/2919
17
​
18
By James Cowgill, see Debian bug #777798
19
---
20
 bcache.c | 2 +-
21
 1 file changed, 1 insertion(+), 1 deletion(-)
22
​
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
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;
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.