[kernel] fix lzo decompressor build failure on 2.6.35
[openwrt/svn-archive/archive.git] / target / linux / generic / patches-2.6.35 / 009-decompress_unlzo_fix.patch
1 Index: linux-2.6.35.7/include/linux/decompress/unlzo_mm.h
2 ===================================================================
3 --- /dev/null 1970-01-01 00:00:00.000000000 +0000
4 +++ linux-2.6.35.7/include/linux/decompress/unlzo_mm.h 2010-10-23 09:32:04.000000000 +0800
5 @@ -0,0 +1,10 @@
6 +#ifndef UNLZO_MM_H
7 +#define UNLZO_MM_H
8 +
9 +#ifdef STATIC
10 +#define INIT
11 +#else
12 +#define INIT __init
13 +#endif
14 +
15 +#endif
16 Index: linux-2.6.35.7/lib/decompress_unlzo.c
17 ===================================================================
18 --- linux-2.6.35.7.orig/lib/decompress_unlzo.c 2010-10-23 09:29:09.000000000 +0800
19 +++ linux-2.6.35.7/lib/decompress_unlzo.c 2010-10-23 09:32:53.000000000 +0800
20 @@ -39,6 +39,7 @@
21
22 #include <linux/types.h>
23 #include <linux/lzo.h>
24 +#include <linux/decompress/unlzo_mm.h>
25 #include <linux/decompress/mm.h>
26
27 #include <linux/compiler.h>