mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] XZ: Fix missing <linux/kernel.h> include
@ 2011-07-24 16:54 Lasse Collin
  0 siblings, 0 replies; only message in thread
From: Lasse Collin @ 2011-07-24 16:54 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Russell King - ARM Linux, Imre Kaloz, linux-kernel

From: Lasse Collin <lasse.collin@tukaani.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@tukaani.org>
Cc: stable <stable@kernel.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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-24 17:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-24 16:54 [PATCH] XZ: Fix missing <linux/kernel.h> include Lasse Collin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®