1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-26 02:13:02 +02:00

[kernel] fix lzo decompressor build failure on 2.6.35

The patch fixes the build failure in Linux 2.6.35.7.
Other versions may have the same issue, but I haven't test it.

Signed-off-by: Ramax Lo <ramaxlo@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23593 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2010-10-23 18:56:14 +00:00
parent ed78e1b1ea
commit 673f065d7d

View File

@ -0,0 +1,27 @@
Index: linux-2.6.35.7/include/linux/decompress/unlzo_mm.h
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ linux-2.6.35.7/include/linux/decompress/unlzo_mm.h 2010-10-23 09:32:04.000000000 +0800
@@ -0,0 +1,10 @@
+#ifndef UNLZO_MM_H
+#define UNLZO_MM_H
+
+#ifdef STATIC
+#define INIT
+#else
+#define INIT __init
+#endif
+
+#endif
Index: linux-2.6.35.7/lib/decompress_unlzo.c
===================================================================
--- linux-2.6.35.7.orig/lib/decompress_unlzo.c 2010-10-23 09:29:09.000000000 +0800
+++ linux-2.6.35.7/lib/decompress_unlzo.c 2010-10-23 09:32:53.000000000 +0800
@@ -39,6 +39,7 @@
#include <linux/types.h>
#include <linux/lzo.h>
+#include <linux/decompress/unlzo_mm.h>
#include <linux/decompress/mm.h>
#include <linux/compiler.h>