Revert "crypto: Add lz4 Cryptographic API"

This reverts commit 250be1d69877de4e20c36d707a1091dda46ef5e1.
Revert "LZ4: compression/decompression signedness mismatch (v2)"

This reverts commit 57d4a353f36a0e0672999826589efb890bfd7d44.
Revert "lib: Add lz4 compressor module"

This reverts commit 95e81f9aadd8baa20f4a8744e2adcfa2cfef16c4.
Revert "lib: Add support for LZ4-compressed kernel"

This reverts commit 3371e3d7051381f831792d658319003d147c1510.
lib: Add lz4 compressor module

From	Chanho Min <>

This patch adds support for LZ4 compression in the Linux Kernel.
LZ4 Compression APIs for kernel are based on LZ4 implementation
by Yann Collet and changed with kernel coding style.

LZ4 homepage : http://fastcompression.blogspot.com/p/lz4.html
LZ4 source repository : http://code.google.com/p/lz4/
svn revision : r90

Two APIs are added:
lz4_compress() support basic lz4 compression whereas lz4hc_compress() support
high compression or CPU performance get lower but compression ratio get higher.
Also, we require the pre-allocated working memory with the defined size and
destination buffer must be allocated with the size of lz4_compressbound.

Signed-off-by: Chanho Min <chanho.min@lge.com>

Signed-off-by: Paul Reioux <reioux@gmail.com>

Conflicts:
	lib/Kconfig
	lib/Makefile
	lib/lz4/Makefile

Conflicts:
	lib/Kconfig
	lib/Makefile
	lib/lz4/Makefile

Conflicts:
	lib/Kconfig
	lib/Makefile
	lib/lz4/Makefile
LZ4: compression/decompression signedness mismatch (v2)

LZ4 compression and decompression functions require different
in signedness input/output parameters: unsigned char for
compression and signed char for decompression.

Change decompression API to require "(const) unsigned char *".

v2: minor coding style fix.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>

Signed-off-by: Paul Reioux <reioux@gmail.com>
crypto: Add lz4 Cryptographic API

From	Chanho Min <>

This patch adds support for lz4 and lz4hc compression algorithm
using the lib/lz4/* codebase.
Signed-off-by: Chanho Min <chanho.min@lge.com>

Signed-off-by: Paul Reioux <reioux@gmail.com>
micore: enable LZ4 and Zram