[PATCH] XZ: Fix missing <linux/kernel.h> include

From: Lasse Collin
Date: Sun Jul 24 2011 - 13:07:13 EST


From: Lasse Collin <lasse.collin@xxxxxxxxxxx>

<linux/kernel.h> is needed for min_t. The old version
happened to work on x86 because <asm/unaligned.h>
indirectly includes <linux/kernel.h>, but it didn't
work on ARM.

<linux/kernel.h> includes <asm/byteorder.h> so it's
not necessary to include it explicitly anymore.

Signed-off-by: Lasse Collin <lasse.collin@xxxxxxxxxxx>
Cc: stable <stable@xxxxxxxxxx>
---

diff -uprN linux-3.0.orig/lib/xz/xz_private.h linux-3.0/lib/xz/xz_private.h
--- linux-3.0.orig/lib/xz/xz_private.h 2011-07-22 05:17:23.000000000 +0300
+++ linux-3.0/lib/xz/xz_private.h 2011-07-24 19:20:50.806443302 +0300
@@ -12,7 +12,7 @@

#ifdef __KERNEL__
# include <linux/xz.h>
-# include <asm/byteorder.h>
+# include <linux/kernel.h>
# include <asm/unaligned.h>
/* XZ_PREBOOT may be defined only via decompress_unxz.c. */
# ifndef XZ_PREBOOT
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/