ar71xx: add dummy rle_decode function if CONFIG_RLE_DECOMPRESS is not set
authorGabor Juhos <juhosg@openwrt.org>
Mon, 16 Dec 2013 07:37:31 +0000 (07:37 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 16 Dec 2013 07:37:31 +0000 (07:37 +0000)
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 39079

target/linux/ar71xx/patches-3.10/310-lib-add-rle-decompression.patch

index 5c43ae2576679c6c7fcfcf2c6e51bdcd41fd2620..ebf486ec9f0b9d9eb11a990c026ae99ade89b4a7 100644 (file)
  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