--- /dev/null 2007-02-13 17:29:53.000000000 +0100 +++ linux-2.6.33/include/linux/decompress/unlzo_mm.h 2010-03-07 00:37:54.257044457 +0100 @@ -0,0 +1,20 @@ +#ifndef UNLZO_MM_H +#define UNLZO_MM_H + +#ifdef STATIC + +/* Code active when included from pre-boot environment: */ +#define INIT + +#elif defined(CONFIG_DECOMPRESS_LZO_NEEDED) + +/* Make it available to non initramfs/initrd code */ +#define INIT +#include +#else + +/* Compile for initramfs/initrd code only */ +#define INIT __init +#endif + +#endif --- linux-2.6.33/lib/decompress_unlzo.c~ 2010-02-24 19:52:17.000000000 +0100 +++ linux-2.6.33/lib/decompress_unlzo.c 2010-03-07 00:41:28.523690104 +0100 @@ -39,6 +39,7 @@ #include #include +#include #include #include @@ -87,7 +88,7 @@ return 1; } -STATIC inline int INIT unlzo(u8 *input, int in_len, +STATIC int INIT unlzo(u8 *input, int in_len, int (*fill) (void *, unsigned int), int (*flush) (void *, unsigned int), u8 *output, int *posp,