diff options
author | Vicente Olivert Riera <Vincent.Riera@imgtec.com> | 2015-12-02 10:39:41 +0000 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-12-17 12:52:09 +0100 |
commit | 462843e0130c9b3117ed293d372ee21ab9987bb8 (patch) | |
tree | 4e432bfff27e6a4b46e169ba25c0bf371fe85e6f /package/bcache-tools | |
parent | c142fc6f66f8e61e289007081e01cc9db4b3ac4f (diff) | |
download | buildroot-462843e0130c9b3117ed293d372ee21ab9987bb8.tar.gz buildroot-462843e0130c9b3117ed293d372ee21ab9987bb8.zip |
bcache-tools: fix build with gcc-5
Backport a Debian patch to fix a build failure with gcc-5:
bcache.c:125:9: warning: 'crc_table' is static but used in inline
function 'crc64' which is not static
...
make-bcache.c:277: undefined reference to `crc64'
This issue has been reported upstream but is not yet fixed.
Fixes:
http://autobuild.buildroot.net/results/410/410954d33206475d70b8e5ba55a2c955a229af9b/
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/bcache-tools')
-rw-r--r-- | package/bcache-tools/0001-Don-t-inline-crc64-for-gcc-5-compatability.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/package/bcache-tools/0001-Don-t-inline-crc64-for-gcc-5-compatability.patch b/package/bcache-tools/0001-Don-t-inline-crc64-for-gcc-5-compatability.patch new file mode 100644 index 0000000000..1a437a84fb --- /dev/null +++ b/package/bcache-tools/0001-Don-t-inline-crc64-for-gcc-5-compatability.patch @@ -0,0 +1,35 @@ +Don't inline crc64 for gcc-5 compatability + +This patch is backported from Debian and it fixes the following error: + +bcache.c:125:9: warning: 'crc_table' is static but used in inline +function 'crc64' which is not static +... +make-bcache.c:277: undefined reference to `crc64' + +Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> + +From: David Mohr <david@mcbf.net> +Date: Tue, 26 May 2015 20:34:31 -0600 +Subject: Don't inline crc64 for gcc-5 compatability + +Forwarded: http://article.gmane.org/gmane.linux.kernel.bcache.devel/2919 + +By James Cowgill, see Debian bug #777798 +--- + bcache.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/bcache.c b/bcache.c +index 8f37445..8b4b986 100644 +--- a/bcache.c ++++ b/bcache.c +@@ -115,7 +115,7 @@ static const uint64_t crc_table[256] = { + 0x9AFCE626CE85B507ULL + }; + +-inline uint64_t crc64(const void *_data, size_t len) ++uint64_t crc64(const void *_data, size_t len) + { + uint64_t crc = 0xFFFFFFFFFFFFFFFFULL; + const unsigned char *data = _data; |