From 412babe304b948e1e3a909f8d2eb091b83f700d5 Mon Sep 17 00:00:00 2001 From: wdenk Date: Thu, 5 May 2005 09:51:44 +0000 Subject: It's better to handle LZO and LZARI compression mdoes for JFFS2 with a single #define. --- include/jffs2/jffs2.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/jffs2/jffs2.h b/include/jffs2/jffs2.h index 2fec488..0197dfd 100644 --- a/include/jffs2/jffs2.h +++ b/include/jffs2/jffs2.h @@ -65,10 +65,14 @@ #define JFFS2_COMPR_COPY 0x04 #define JFFS2_COMPR_DYNRUBIN 0x05 #define JFFS2_COMPR_ZLIB 0x06 +#if defined(CONFIG_JFFS2_LZO_LZARI) #define JFFS2_COMPR_LZO 0x07 #define JFFS2_COMPR_LZARI 0x08 #define JFFS2_NUM_COMPR 9 - +#else +#define JFFS2_NUM_COMPR 7 +#endif + /* Compatibility flags. */ #define JFFS2_COMPAT_MASK 0xc000 /* What do to if an unknown nodetype is found */ #define JFFS2_NODE_ACCURATE 0x2000 @@ -203,13 +207,11 @@ void dynrubin_decompress(unsigned char *data_in, unsigned char *cpage_out, unsigned long sourcelen, unsigned long dstlen); long zlib_decompress(unsigned char *data_in, unsigned char *cpage_out, __u32 srclen, __u32 destlen); -#if defined(CONFIG_JFFS2_LZARI) -int lzari_decompress(unsigned char *data_in, unsigned char *cpage_out, - u32 srclen, u32 destlen); -#endif -#if defined(CONFIG_JFFS2_LZO) +#if defined(CONFIG_JFFS2_LZO_LZARI) int lzo_decompress(unsigned char *data_in, unsigned char *cpage_out, u32 srclen, u32 destlen); +int lzari_decompress(unsigned char *data_in, unsigned char *cpage_out, + u32 srclen, u32 destlen); #endif char *mkmodestr(unsigned long mode, char *str); -- cgit v1.1