[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20110724195425.7a0ccd3f@tukaani.org>
Date: Sun, 24 Jul 2011 19:54:25 +0300
From: Lasse Collin <lasse.collin@...aani.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: "Russell King - ARM Linux" <linux@....linux.org.uk>,
"Imre Kaloz" <kaloz@...nwrt.org>, linux-kernel@...r.kernel.org
Subject: [PATCH] XZ: Fix missing <linux/kernel.h> include
From: Lasse Collin <lasse.collin@...aani.org>
<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@...aani.org>
Cc: stable <stable@...nel.org>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists