An error occurred while fetching folder content.
lib: lz4: fixed zram with lz4 on big endian machines
Rui Salvaterra authored
[ Upstream commit 3e26a691 ]

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: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: default avatarRui Salvaterra <rsalvaterra@gmail.com>
Reviewed-by: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
da56dbea
Name Last commit Last update
..
fonts fonts: Add 6x10 font
lz4 lib: lz4: fixed zram with lz4 on big endian machines
lzo lzo: check for length overrun in variable length encoding.
mpi MPI: MIPS: Fix compilation error with GCC 5.1
raid6 md/raid6 algorithms: xor_syndrome() for SSE2
reed_solomon lib: Remove unnecessary inclusions of asm/semaphore.h
xz lib/xz: enable all filters by default in Kconfig
zlib_deflate zlib: clean up some dead code
zlib_inflate zlib: clean up some dead code
.gitignore X.509: Implement simple static OID registry
Kconfig Merge tag 'cpumask-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux
Kconfig.debug Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Kconfig.kasan kasan: show gcc version requirements in Kconfig and Documentation
Kconfig.kgdb kdb: Allow access to sensitive commands to be restricted by default
Kconfig.kmemcheck kmemcheck: depend on HAVE_ARCH_KMEMCHECK
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
argv_split.c argv_split(): teach it to handle mutable strings
asn1_decoder.c lib/asn1_decoder.c: kernel-doc warning fix
assoc_array.c assoc_array: don't call compare_object() on a node
atomic64.c locking,arch: Rewrite generic atomic support
atomic64_test.c lib/atomic64_test.c: convert printk(KERN_INFO to pr_info
audit.c syscalls: implement execveat() system call
average.c lib: Ensure EWMA does not store wrong intermediate values
bcd.c usb/core: use bin2bcd() for bcdDevice in RH
bch.c lib: add shared BCH ECC library
bitmap.c
bitrev.c
bsearch.c
btree.c
bug.c
build_OID_registry
bust_spinlocks.c
check_signature.c
checksum.c
clz_ctz.c
clz_tab.c
cmdline.c
compat_audit.c
cordic.c
cpu-notifier-error-inject.c
cpu_rmap.c
cpumask.c
crc-ccitt.c
crc-itu-t.c
crc-t10dif.c
crc16.c
crc32.c
crc32defs.h
crc7.c
crc8.c
ctype.c
debug_locks.c
debugobjects.c
dec_and_lock.c
decompress.c
decompress_bunzip2.c
decompress_inflate.c
decompress_unlz4.c
decompress_unlzma.c
decompress_unlzo.c
decompress_unxz.c
devres.c
digsig.c
div64.c
dma-debug.c
dump_stack.c
dynamic_debug.c
dynamic_queue_limits.c
earlycpio.c
extable.c
fault-inject.c
fdt.c
fdt_empty_tree.c
fdt_ro.c
fdt_rw.c
fdt_strerror.c
fdt_sw.c
fdt_wip.c
find_bit.c
flex_array.c
flex_proportions.c
gcd.c
gen_crc32table.c
genalloc.c
glob.c
halfmd4.c
hexdump.c
hweight.c
idr.c
inflate.c
int_sqrt.c
interval_tree.c
interval_tree_test.c
iomap.c
iomap_copy.c
iommu-common.c
iommu-helper.c
ioremap.c
iov_iter.c
irq_regs.c