]> granicus.if.org Git - zfs/commitdiff
Force LZ4_FORCE_SW_BITCOUNT for Sparc
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 7 Jan 2014 23:24:30 +0000 (00:24 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 9 Jan 2014 23:54:03 +0000 (15:54 -0800)
This change was proposed for Sparc but it's not clear to me
why it's required.  Proper support exists in the lz4 code to
detect the endianness and the required builtins are available
for gcc.  Still I'm including the patch because it will only
impact Sparc and it may resolve a case which hasn't occured
to me.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: marku89 <mar42@kola.li>
Issue #1700

module/zfs/lz4.c

index 6fc6201eedd8483d65aacfcbbfc86f5a126628fc..df9637336d3947f6a63cf13f0d06d64712666efc 100644 (file)
@@ -238,6 +238,9 @@ lz4_decompress_zfs(void *s_start, void *d_start, size_t s_len,
  * kernel
  */
 #undef LZ4_FORCE_SW_BITCOUNT
+#if defined(__sparc)
+#define        LZ4_FORCE_SW_BITCOUNT
+#endif
 
 /*
  * Compiler Options