X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Fpatches-3.10%2F310-lib-add-rle-decompression.patch;h=46cdacdfdefe975f107ffd2369b41b45d7973a6a;hb=51ddd6d8415804cb76e16b217c8c00d99d4c3bb7;hp=5c43ae2576679c6c7fcfcf2c6e51bdcd41fd2620;hpb=03303b1c53db782df78e19a91f1c6218bd653d93;p=openwrt.git diff --git a/target/linux/ar71xx/patches-3.10/310-lib-add-rle-decompression.patch b/target/linux/ar71xx/patches-3.10/310-lib-add-rle-decompression.patch index 5c43ae2576..46cdacdfde 100644 --- a/target/linux/ar71xx/patches-3.10/310-lib-add-rle-decompression.patch +++ b/target/linux/ar71xx/patches-3.10/310-lib-add-rle-decompression.patch @@ -12,7 +12,7 @@ # ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.) --- a/lib/Makefile +++ b/lib/Makefile -@@ -89,6 +89,7 @@ obj-$(CONFIG_XZ_DEC) += xz/ +@@ -90,6 +90,7 @@ obj-$(CONFIG_XZ_DEC) += xz/ obj-$(CONFIG_RAID6_PQ) += raid6/ obj-$(CONFIG_LZMA_COMPRESS) += lzma/ obj-$(CONFIG_LZMA_DECOMPRESS) += lzma/ @@ -22,13 +22,23 @@ lib-$(CONFIG_DECOMPRESS_BZIP2) += decompress_bunzip2.o --- /dev/null +++ b/include/linux/rle.h -@@ -0,0 +1,8 @@ +@@ -0,0 +1,18 @@ +#ifndef _RLE_H_ +#define _RLE_H_ + ++#ifdef CONFIG_RLE_DECOMPRESS +int rle_decode(const unsigned char *src, size_t srclen, + unsigned char *dst, size_t dstlen, + size_t *src_done, size_t *dst_done); ++#else ++static inline int ++rle_decode(const unsigned char *src, size_t srclen, ++ unsigned char *dst, size_t dstlen, ++ size_t *src_done, size_t *dst_done) ++{ ++ return -ENOTSUPP; ++} ++#endif /* CONFIG_RLE_DECOMPRESS */ + +#endif /* _RLE_H_ */ --- /dev/null