Skip to content

Commit

Permalink
Force LZ4_FORCE_SW_BITCOUNT for Sparc
Browse files Browse the repository at this point in the history
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
  • Loading branch information
behlendorf committed Jan 9, 2014
1 parent b585bc4 commit 4fcc437
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/zfs/lz4.c
Expand Up @@ -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
Expand Down

0 comments on commit 4fcc437

Please sign in to comment.