File 0001-build-remove-inline-keyword-from-crc64.patch of Package bcache-tools

From 96e990f72720c87c0bd85b31f819bddcdfdb22d7 Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Fri, 4 Apr 2014 10:08:17 +0200
Subject: [PATCH] build: remove inline keyword from crc64

In optimization levels like -O2, crc64 gets inlined for me and a
linker error follows, because there is no more crc64 function in the
object output.
---
 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;
-- 
1.8.4.5

openSUSE Build Service is sponsored by