[PATCH] staging: erofs: select LZ4_DECOMPRESS to fix build error
From: Randy Dunlap
Date: Fri Nov 09 2018 - 12:58:57 EST
From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
EROFS Data Compression support uses LZ4 decompression, so it
should select LZ4_DECOMPRESS to prevent this build error:
drivers/staging/erofs/unzip_vle_lz4.o: In function `z_erofs_unzip_lz4':
drivers/staging/erofs/unzip_vle_lz4.c:18: undefined reference to `LZ4_decompress_safe_partial'
Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Reported-by: kbuild test robot <lkp@xxxxxxxxx>
Cc: Gao Xiang <gaoxiang25@xxxxxxxxxx>
Cc: Chao Yu <yuchao0@xxxxxxxxxx>
Cc: linux-erofs@xxxxxxxxxxxxxxxx
---
drivers/staging/erofs/Kconfig | 1 +
1 file changed, 1 insertion(+)
--- linux-next-20181109.orig/drivers/staging/erofs/Kconfig
+++ linux-next-20181109/drivers/staging/erofs/Kconfig
@@ -90,6 +90,7 @@ config EROFS_FS_IO_MAX_RETRIES
config EROFS_FS_ZIP
bool "EROFS Data Compresssion Support"
depends on EROFS_FS
+ select LZ4_DECOMPRESS
help
Currently we support VLE Compression only.
Play at your own risk.