From: Lasse Collin <lasse.collin@tukaani.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "Russell King - ARM Linux" <linux@arm.linux.org.uk>,
"Imre Kaloz" <kaloz@openwrt.org>,
linux-kernel@vger.kernel.org
Subject: [PATCH] XZ: Fix missing <linux/kernel.h> include
Date: Sun, 24 Jul 2011 19:54:25 +0300 [thread overview]
Message-ID: <20110724195425.7a0ccd3f@tukaani.org> (raw)
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
reply other threads:[~2011-07-24 17:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110724195425.7a0ccd3f@tukaani.org \
--to=lasse.collin@tukaani.org \
--cc=kaloz@openwrt.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®