diff -Nur a/include/linux/decompress/unxz_mm.h b/include/linux/decompress/unxz_mm.h
--- a/include/linux/decompress/unxz_mm.h	1970-01-01 09:00:00.000000000 +0900
+++ b/include/linux/decompress/unxz_mm.h	2011-05-12 14:17:02.000000000 +0900
@@ -0,0 +1,13 @@
+#ifndef UNXZ_MM_H
+#define UNXZ_MM_H
+
+#ifdef STATIC
+/* Code active when included from pre-boot environment: */
+#define INIT
+#else
+/* Compile for initramfs/initrd code only */
+#define INIT __init
+static void(*error)(char *m);
+#endif
+
+#endif
diff -Nur a/lib/decompress_unxz.c b/lib/decompress_unxz.c
--- a/lib/decompress_unxz.c	2011-03-15 10:20:32.000000000 +0900
+++ b/lib/decompress_unxz.c	2011-05-12 14:17:02.000000000 +0900
@@ -104,6 +104,7 @@
 #	define XZ_PREBOOT
 #endif
 #ifdef __KERNEL__
+#	include <linux/decompress/unxz_mm.h>
 #	include <linux/decompress/mm.h>
 #endif
 #define XZ_EXTERN STATIC
