0001-Don-t-inline-crc64-for-gcc-5-compatability.patch 1013 B

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