lz4: fix compression/decompression signedness mismatch
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Wed, 11 Sep 2013 21:26:32 +0000 (14:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:59:45 +0000 (15:59 -0700)
commitb34081f1cd59585451efaa69e1dff1b9507e6c89
treeb04c842059aeeed535e71e72570a29e2989ceeb3
parent20b8875abcf2daa1dda5cf70bd6369df5e85d4c1
lz4: fix compression/decompression signedness mismatch

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 *".

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Kyungsik Lee <kyungsik.lee@lge.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Yann Collet <yann.collet.73@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/lz4.h
lib/lz4/lz4_decompress.c