diff options
author | Richard Yao <[email protected]> | 2013-10-05 17:55:24 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-10-22 10:12:39 -0700 |
commit | b3c49d3df82466646bde9beebce7bbf0b3c41853 (patch) | |
tree | 37c94c3b7468fd42d34f8a02474c1894d24a659f /module/zfs/lz4.c | |
parent | 2e2ddc30b47c174d95c2eb491452a7587e3e129f (diff) |
Linux 3.11 compat: Rename LZ4 symbols
Linus Torvalds merged LZ4 into Linux 3.11. This causes a conflict
whenever CONFIG_LZ4_DECOMPRESS=y or CONFIG_LZ4_COMPRESS=y are set in the
kernel's .config. We rename the symbols to avoid the conflict.
Signed-off-by: Richard Yao <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #1789
Diffstat (limited to 'module/zfs/lz4.c')
-rw-r--r-- | module/zfs/lz4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/lz4.c b/module/zfs/lz4.c index 8afaad130..ae5d5a23a 100644 --- a/module/zfs/lz4.c +++ b/module/zfs/lz4.c @@ -47,7 +47,7 @@ static kmem_cache_t *lz4_cache; /*ARGSUSED*/ size_t -lz4_compress(void *s_start, void *d_start, size_t s_len, size_t d_len, int n) +lz4_compress_zfs(void *s_start, void *d_start, size_t s_len, size_t d_len, int n) { uint32_t bufsiz; char *dest = d_start; @@ -74,7 +74,7 @@ lz4_compress(void *s_start, void *d_start, size_t s_len, size_t d_len, int n) /*ARGSUSED*/ int -lz4_decompress(void *s_start, void *d_start, size_t s_len, size_t d_len, int n) +lz4_decompress_zfs(void *s_start, void *d_start, size_t s_len, size_t d_len, int n) { const char *src = s_start; uint32_t bufsiz = BE_IN32(src); |