summaryrefslogtreecommitdiffstats
path: root/module/zfs/lz4.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-01-08 00:24:30 +0100
committerBrian Behlendorf <[email protected]>2014-01-09 15:54:03 -0800
commit4fcc43790c872139a2e318ebe4100e8404f841c0 (patch)
tree0e3f0b85228092f769d263e93bf9407b66e7c061 /module/zfs/lz4.c
parentb585bc4afaf37b744acba6be87f5909b4564b845 (diff)
Force LZ4_FORCE_SW_BITCOUNT for Sparc
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 <[email protected]> Signed-off-by: Ned Bass <[email protected]> Signed-off-by: marku89 <[email protected]> Issue #1700
Diffstat (limited to 'module/zfs/lz4.c')
-rw-r--r--module/zfs/lz4.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/zfs/lz4.c b/module/zfs/lz4.c
index 6fc6201ee..df9637336 100644
--- a/module/zfs/lz4.c
+++ b/module/zfs/lz4.c
@@ -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