1
0
Fork 0
remarkable-linux/lib/lz4
Rui Salvaterra da56dbeaed lib: lz4: fixed zram with lz4 on big endian machines
[ Upstream commit 3e26a691fe ]

Based on Sergey's test patch [1], this fixes zram with lz4 compression
on big endian cpus.

Note that the 64-bit preprocessor test is not a cleanup, it's part of
the fix, since those identifiers are bogus (for example, __ppc64__
isn't defined anywhere else in the kernel, which means we'd fall into
the 32-bit definitions on ppc64).

Tested on ppc64 with no regression on x86_64.

[1] http://marc.info/?l=linux-kernel&m=145994470805853&w=4

Cc: stable@vger.kernel.org
Suggested-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-04-20 01:08:56 -04:00
..
Makefile lib: add lz4 compressor module 2013-07-09 10:33:30 -07:00
lz4_compress.c lib/lz4: correct the LZ4 license 2013-08-23 09:51:22 -07:00
lz4_decompress.c lib/lz4: Pull out constant tables 2015-03-25 15:04:57 +01:00
lz4defs.h lib: lz4: fixed zram with lz4 on big endian machines 2016-04-20 01:08:56 -04:00
lz4hc_compress.c lib/lz4: correct the LZ4 license 2013-08-23 09:51:22 -07:00